
if (httpsflg == 'refill') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/refill.pl" METHOD="post" name="refill" onSubmit="return validate_refill(this)">');

} else if (httpsflg == 'refill_mail') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/refill.pl" METHOD="post" name="refill_mail" onSubmit="return validate_refill_mail(this)">');

} else if (httpsflg == 'refill_delivery') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/refill.pl" METHOD="post" name="refill_delivery" onSubmit="return validate_refill_delivery(this)">');

} else if (httpsflg == 'p_login') {
    var type = 'p_login';
    if (typeof pltype != 'undefined') {
        type = pltype;    
    }
    document.write('<FORM ACTION="' + https + '/cgi-bin/p_login.pl" METHOD="post" name="p_login" onSubmit="return validate_' + type + '(this)">');

} else if (httpsflg == 'p_account') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/p_account.pl" METHOD="post" name="p_account" onSubmit="return validate_p_account(this)">');

} else if (httpsflg == 'p_account_ap') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/p_account_ap.pl" METHOD="post" name="p_account_ap" onSubmit="return validate_p_account_ap(this)">');

} else if (httpsflg == 'p_account_ep') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/p_account_ep.pl" METHOD="post" name="p_account_ep" onSubmit="return validate_p_account_ep(this)">');

} else if (httpsflg == 'paccess_npr_html') {
    document.write('<A HREF="' + https + '/paccess_npr.html"><b>Register to Create an Account</b></A>');

} else if (httpsflg == 'paccess_npr_error') {
    document.write('<A HREF="' + https + '/paccess_npr.html"><b>Please go BACK and try a different Username.</b></A>');

} else if (httpsflg == 'paccess_npr_add') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/paccess_npr_add.pl" METHOD="post" name="paccess_npr_add" onSubmit="return validate_paccess_npr_add(this)">');

} else if (httpsflg == 'paccess_npr') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/paccess_npr.pl" METHOD="post" name="paccess_npr" onSubmit="return validate_paccess_npr(this)">');

} else if (httpsflg == 'ask') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/ask.pl" METHOD="post" name="ask" onSubmit="return validate_ask(this)">');

} else if (httpsflg == 'special') {
    document.write('<FORM ACTION="' + https + '/cgi-bin/special.pl" METHOD="post" name="special" onSubmit="return validate_special(this)">');

}


