
<!-- Hidding from the older browsers

// this is for all the required fields
function CheckUserEntry(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.name.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - Mohon nama lengkap anda di 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.name;
   	 }
	 
	 	/* Checks the first required input field for an empty string. */
	if (form.add.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - Mohon alamat anda di 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.add;
   	 }
	
		 	/* Checks the first required input field for an empty string. */
	if (form.city.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - Mohon city 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.city;
   	 }
	 
	 	   /* Checks the first required input field for an empty string. */
	if (form.zip.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - Mohon kode pos 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.zip;
   	 }
	 
	       /* Checks the first required input field for an empty string. */
	if (form.phone.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - Mohon memberi paling sedikit 1 nomer telpon \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.phone;
   	 }
	 
	 	   /* Checks the first required input field for an empty string. */
	if (form.email.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - Mohon memberi email anda untuk konfirmasi \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.email;
   	 }
				 
	/* Checks the first required input field for an empty string. */
	if (form.bankname.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon nama bank 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.bankname;
   	 }
	 
	
	/* Checks the first required input field for an empty string. */
	if (form.bankadd.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon alamat bank 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.bankadd;
   	 }
	 
	 
		/* Checks the first required input field for an empty string. */
	if (form.bankcity.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon lokasi (kota) Bank 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.bankcity;
   	 }
	 
	 
	/* Checks the first required input field for an empty string. */
	if (form.bentukdeposit.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon jenis rekening 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.bentukdeposit;
   	 }
	 
	 /* Checks the first required input field for an empty string. */
	if (form.amountsent.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon Jumlah yang dikirim 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.amountsent;
   	 }
	 
	 	 /* Checks the first required input field for an empty string. */
	if (form.transferfee.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon memilih biaya transfer yang sesuai \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.transferfee;
   	 }
	 
		 	 /* Checks the first required input field for an empty string. */
	if (form.TotalDeposit.value == "") {
			/* If the field is empty, add this to the message. */
    		message += "- - mohon jumlah total di isi \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.TotalDeposit;
   	 }
			   
	    /*   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