
<!-- Hidding from the older browsers

// this is for all the required fields
function registerNewMember(form) {
		
	var passed = true; /* This variable is set to "false" if the form is not ready. */
	fieldtofocus = ""; /* Data field to receive the focus after the alert is closed. */

		/*  Set up the initial string of the alert message. The "\n" 
		creates a new line for the text string.  */

	message ="Mohon informasi berikut tidak dikosongkan: \n"
		
	/* Checks the first required input field for an empty string. */
	if (form.sendername.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon Nama dilengkapi \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.sendername;
   	 }
	 
	 
	/* Checks the first required input field for an empty string. */
	if (form.senderadd.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon alamat dilengkapi \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.senderadd;
   	 }
	 
	 /* Checks the first required input field for an empty string. */
	if (form.sendercity.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon City dilengkapi \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.sendercity;
   	 }
	 
	 
	/* Checks the first required input field for an empty string. */
	if (form.senderstate.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon State dilengkapi \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.senderstate;
   	 }
	 
	
	/* Checks the first required input field for an empty string. */
	if (form.senderzip.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon Zip dilengkapi \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.senderzip;
   	 }
	 
	 
	 	/* Checks the first required input field for an empty string. */
	if (form.country.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon pilih negaranya, USA atau Canada \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.country;
   	 }
		 	 
		/* Checks the first required input field for an empty string. */
	if (form.senderphone.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon telpon rumah/cellphone dilengkapi \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.senderphone;
   	 }
	 
	 	 
	/* Checks the first required input field for an empty string. */
	if (form.senderemail.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon email tidak dikosongkan \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.senderemail;
   	 }
	 
	 	/* Checks the first required input field for an empty string. */
	if (form.sendermsg.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- -  mohon menulis pesan/pertanyaan \n";
			/* Then set the passed variable to "false"...we check this later. */
		passed = false;
			/* Set this as the input field to have the focus after 
				the alert message. */
		fieldtofocus = form.sendermsg;
   	 }
	 
	 
	 
	 
	 
	 
	 
	 
	 
			   
	    /*   If there are missing data fields, send out the message
		using a call to the fixFieldInfo function. */    

	if (passed == false)  {
		fixFieldInfo(message, fieldtofocus); 
	}
		/*  We need to return a "true" to the form's submit so that it will send
		the form. If a "false" is returned, nothing happens with the form 
		submittal.  */

	return passed;
	
}

	/*  And finally, we send out the message with the 
concatenated message strings and the field to receive 
the cursor (focus) after the alert message is closed.*/

function fixFieldInfo(message, fieldtofocus) {
	alert(message);
	fieldtofocus.focus();
}


// end comments to hid scripts