Skip navigation


Silakan sampaikan pesan anda di formulir ini. Saya usahakan untuk membalas pesan anda sesegera mungkin. Terima kasih.

function New_Form_CF(){
var errormessage = new String();
var vF = document.forms[“New_Form”];
if(New_Form_WithoutContent(vF[“message”].value)){errormessage += “\n\nPlease fill in the \”message\” edit field”;}
if(New_Form_WithoutContent(vF[“name”].value)){errormessage += “\n\nPlease fill in the \”name\” edit field”;}
if(New_Form_WithoutContent(vF[“emel”].value)){errormessage += “\n\nPlease fill in the \”emel\” edit field”;}
if(New_Form_NotEmail(vF[“emel”].value)){errormessage += “\n\nThe entry for \”emel\” does not appear to be a valid email address”;}
if(New_Form_WithoutContent(vF[“subject”].value)){errormessage += “\n\nPlease fill in the \”subject\” edit field”;}

if (errormessage.length > 2){
alert(“There are errors or ommissions in the form” + errormessage + “\n”);
return false;
}
return true;
} // end of New_Form_CF()

function New_Form_WithoutContent(ss){
if (ss.length>0){return false;}
return true;
}

function New_Form_WithoutCheck(ss){
if(ss.checked){return false;}
return true;
}

function New_Form_NotEmail(ss){
var splitted = ss.match(“^(.+)@(.+)$”);
if (ss.length == 0){return false;}
if(splitted == null) return true;
if(splitted[1] != null){
var regexp_user=/^\”?[\w-_\.]*\”?$/;
if(splitted[1].match(regexp_user) == null) return true;
}
if(splitted[2] != null){
var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
if(splitted[2].match(regexp_domain) == null){
var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
if(splitted[2].match(regexp_ip) == null) return true;
}
return false;
}
return true;
}

Your browser either does not support JavaScript or it is turned off.
Without Javascript enabled, this form will not function correctly

Name

E-mail

Subject

Message

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: