	
	// whitespace characters
	var whitespace = " \t\n\r";

	/****************************************************************/
	
	// Check whether string is empty.
	function isEmpty(s){ 
		return ((s == null) || (s.length == 0)) 
	}
	
	/****************************************************************/
	
	function isEmail(string, strid, strfld){
		if (string.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1){
			return true;
		}
		else{
			document.getElementById(strid).style.visibility = "visible";
			eval("document.forms[1]." + strfld).focus();
			return false;
		}
	}
	
	/****************************************************************/
	
	function isPhone(string,strid,strfld) {
		if ((string.search(/[^0-9-]/) == -1)){
			return true;
		}
		else{
			document.getElementById(strid).style.visibility = "visible";
			eval("document.forms[1]." + strfld).focus();
			return false;
		}
	}
	
	/****************************************************************/
	
	function isNumeric(string,strid,strfld) {
		if (string.search(/[^0-9]/) == -1){
			return true;
		}
		else{
			document.getElementById(strid).style.visibility = "visible";
			eval("document.forms[1]." + strfld).focus();
			return false;
		}
	}
	
	/****************************************************************/
	
	function isAlphaspace(string,strid,strfld) {
		if (string.search(/[^A-Za-z .']/) == -1){
			return true;
		}
		else{
			document.getElementById(strid).style.visibility = "visible";
			eval("document.forms[1]." + strfld).focus();
			return false;
		}
	}

	/****************************************************************/

	function isAlphanumDiv(string,strid,strfld,strmsg) {
		if (string.search(/[^A-Za-z0-9]/) == -1){
			return true;
		}
		else{
			document.getElementById(strid).style.visibility = "visible";
			document.getElementById(strid).innerHTML = strmsg;
			eval("document.forms[1]." + strfld).focus();
			return false;
		}
	}

	/****************************************************************/

	function disHelp(panel,msg) {
		document.getElementById(panel).innerHTML = msg;
	}
	
	/****************************************************************/

	function isWhitespace (s){
	   var i;
	   // Is s empty?
	   if (isEmpty(s)) return true;
	   // Search through string's characters one by one
	   // until we find a non-whitespace character.
	   // When we do, return false; if we don't, return true.
	   for (i = 0; i < s.length; i++){
			// Check that current character isn't whitespace.
			var c = s.charAt(i);
			if (whitespace.indexOf(c) == -1) return false;
	   }
	   // All characters are whitespace.
	   return true;
	}

	/****************************************************************/
	
	function validatefields(val, strid, strfld){
	   var strInput = new String(val.value);
	   if (isWhitespace(strInput)){
			document.getElementById(strid).style.visibility = "visible";
			eval("document.forms[1]." + strfld).focus();
			return false;
	   } 
	   else{
			return true;
	   }
	}
	
	/****************************************************************/

	function resetErrRfs(){
		document.getElementById("spnfnm").style.visibility = "hidden";
		document.getElementById("spnfnmv").style.visibility = "hidden";
		document.getElementById("spnlnmv").style.visibility = "hidden";
		document.getElementById("spnem").style.visibility = "hidden";
		document.getElementById("spnemv").style.visibility = "hidden";
		document.getElementById("spncntry").style.visibility = "hidden";
		document.getElementById("spncntryv").style.visibility = "hidden";
		document.getElementById("spnsernd").style.visibility = "hidden";
		document.getElementById("divvericode").style.visibility = "hidden";
	}

	/****************************************************************/

	function resetErrFeedback(){
		document.getElementById("spnfnm").style.visibility = "hidden";
		document.getElementById("spnfnmv").style.visibility = "hidden";
		document.getElementById("spnlnmv").style.visibility = "hidden";
		document.getElementById("spnem").style.visibility = "hidden";
		document.getElementById("spnemv").style.visibility = "hidden";
		document.getElementById("spnsub").style.visibility = "hidden";
		document.getElementById("spnsubv").style.visibility = "hidden";
		document.getElementById("spncmnt").style.visibility = "hidden";
		document.getElementById("divvericode").style.visibility = "hidden";
	}
	
	/****************************************************************/

	function resetErrSubscribe(){
		document.getElementById("spnfnm").style.visibility = "hidden";
		document.getElementById("spnfnmv").style.visibility = "hidden";
		document.getElementById("spnlnmv").style.visibility = "hidden";
		document.getElementById("spncmpnmv").style.visibility = "hidden";
		document.getElementById("spnem").style.visibility = "hidden";
		document.getElementById("spnemv").style.visibility = "hidden";
		document.getElementById("spncntryv").style.visibility = "hidden";
		document.getElementById("spnoptemfmt").style.visibility = "hidden";
		document.getElementById("spnoptinfo").style.visibility = "hidden";
		document.getElementById("divvericode").style.visibility = "hidden";
	}
	
	/****************************************************************/

	function resetErrSform(){
		document.getElementById("spnfnm").style.visibility = "hidden";
		document.getElementById("spnfnmv").style.visibility = "hidden";
		document.getElementById("spnlnmv").style.visibility = "hidden";
		document.getElementById("spncmpnmv").style.visibility = "hidden";
		document.getElementById("spnem").style.visibility = "hidden";
		document.getElementById("spnemv").style.visibility = "hidden";
		document.getElementById("spncntryv").style.visibility = "hidden";
		document.getElementById("divvericode").style.visibility = "hidden";
	}
	
	/****************************************************************/

	function resetErrPstprf(){
		document.getElementById("spnfnm").style.visibility = "hidden";
		document.getElementById("spnfnmv").style.visibility = "hidden";
		document.getElementById("spnlnmv").style.visibility = "hidden";
		document.getElementById("spncntry").style.visibility = "hidden";
		document.getElementById("spncntryv").style.visibility = "hidden";
		document.getElementById("spnem").style.visibility = "hidden";
		document.getElementById("spnemv").style.visibility = "hidden";
		document.getElementById("spnphnov").style.visibility = "hidden";
		document.getElementById("spnyrsexp").style.visibility = "hidden";
		document.getElementById("spnyrsexpv").style.visibility = "hidden";
		document.getElementById("spnedu").style.visibility = "hidden";
		document.getElementById("spntechexprt").style.visibility = "hidden";
		document.getElementById("spnrestxt").style.visibility = "hidden";
		document.getElementById("divvericode").style.visibility = "hidden";
	}
	
	/****************************************************************/

	function resetPstprf(){
		//resetting the error message
		resetErrPstprf();
		//resetting the values of the form fields
		document.forms[1].txtfnm.value = "";
		document.forms[1].txtlnm.value = "";
		document.forms[1].txtcntry.value = "";
		document.forms[1].txtem.value = "";
		document.forms[1].txtphno.value = "";
		document.forms[1].txtyrsexp.value = "";
		document.forms[1].txtedu.value = "";
		document.forms[1].txttechexprt.value = "";
		document.forms[1].txtposapd.value = "";
		document.forms[1].txtcvrlt.value = "";
		document.forms[1].txtrestxt.value = "";
		document.forms[1].txtcap.value = "";
		document.forms[1].txtfnm.focus();
	}
	
	/****************************************************************/

	function resetRfs(){
		//resetting the error message
		resetErrRfs();
		//resetting the values of the form fields
		document.forms[1].txtfnm.value = "";
		document.forms[1].txtlnm.value = "";
		document.forms[1].txtcmpnm.value = "";
		document.forms[1].txturl.value = "";
		document.forms[1].txtem.value = "";
		document.forms[1].txtcntry.value = "";
		document.forms[1].txtsernd.value = "";
		document.forms[1].txtknwagc.value = "";
		document.forms[1].txtcmnt.value = "";
		document.forms[1].txtcap.value = "";
		document.forms[1].txtfnm.focus();
	}
		
	/****************************************************************/
	
	function resetFeedback(){
		//resetting the error message
		resetErrFeedback();
		document.forms[1].txtfnm.value = "";
		document.forms[1].txtlnm.value = "";
		document.forms[1].txtem.value = "";
		document.forms[1].txtsub.value = "";
		document.forms[1].txtcmnt.value = "";
		document.forms[1].txtcap.value = "";
		document.forms[1].txtfnm.focus();
	}
	
	/****************************************************************/
	
	function resetSubscribe(){
		//resetting the error message
		resetErrSubscribe();
		document.forms[1].txtfnm.value = "";
		document.forms[1].txtlnm.value = "";
		document.forms[1].txtcmpnm.value = "";
		document.forms[1].txtcmpnm.value = "";
		document.forms[1].txtem.value = "";
		document.forms[1].txtcntry.value = "";
		document.forms[1].optemfmt.options[0].selected = true;
		document.forms[1].optinfo.options[0].selected = true;
		document.forms[1].txtcap.value = "";
		document.forms[1].txtfnm.focus();
	}
	
	/****************************************************************/
	
	var rfshandleSuccess = function(o){   
		if(o.responseText !== undefined){
			if (o.responseText == "Err")
			{
				document.getElementById('divvericode').innerHTML = "Enter valid code";
				document.getElementById('divvericode').style.visibility = "visible";
			}
			else
			{
				document.getElementById('maincontentrhs').innerHTML = "";
				document.getElementById('maincontentrhs').innerHTML = o.responseText;
			}
		}
	}
	
	var rfshandleFailure = function(o){  
		if(o.responseText !== undefined){
			document.getElementById('divvericode').style.visibility = "visible";
			document.getElementById('divvericode').innerHTML = "Error in server" ;
		}
	}
	
	function validateRfsform(){
		var returnVal = false;
		resetErrRfs();
		// Check to make sure that the verification code field is not empty.
		returnVericode = validatefields(document.forms[1].txtcap,"divvericode", "txtcap");
		if (returnVericode){
			returnVericode = isAlphanumDiv(document.forms[1].txtcap.value,"divvericode", "txtcap", "Enter valid value");
		}
		else{
			returnVericode = false;
		}
		// Check to make sure that the services needed field is not empty.
		returnValsernd = validatefields(document.forms[1].txtsernd, "spnsernd", "txtsernd");
		// Check to make sure that the country name field is not empty.
		returnValcntry = validatefields(document.forms[1].txtcntry, "spncntry", "txtcntry");
		if (returnValcntry){
			returnValcntry = isAlphaspace(document.forms[1].txtcntry.value, "spncntryv", "txtcntry");
		}
		else{
			returnValcntry = false;
		}
		if (!returnValsernd){
			returnValcntry = false;
		}
		// Check to make sure that the email name field is not empty.
		returnValem = validatefields(document.forms[1].txtem, "spnem", "txtem");
		if (returnValem){
			returnValem = isEmail(document.forms[1].txtem.value, "spnemv", "txtem");
		}
		else{
			returnValem = false;
		}
		if (!returnValcntry){
			returnValem = false;
		}
		
		// Check to make sure that the last name field has valid values.
		if (isWhitespace(document.forms[1].txtlnm)){
			returnVallnm = isAlphaspace(document.forms[1].txtlnm.value,"spnlnmv", "txtlnm");
		}
		else{
			returnVallnm = false;
		}
		if (!returnValem){
			returnVallnm = false;
		}
		
		// Check to make sure that the first name field is not empty.
		returnValfnm = validatefields(document.forms[1].txtfnm,"spnfnm", "txtfnm");
		if (returnValfnm){
			returnValfnm = isAlphaspace(document.forms[1].txtfnm.value,"spnfnmv", "txtfnm");
		}
		else{
			returnValfnm = false;
		}
		if (!returnVallnm){
			returnValfnm = false;
		}
		returnVal = returnValfnm;
		//return returnVal;
		if (returnVal)
		{
			var formObject = document.getElementById('frmrfs');
			ARIMAANAJAX.util.Connect.setForm(formObject,false,true);
			var cObj = ARIMAANAJAX.util.Connect.asyncRequest('POST', 'http://www.arimaan.com/contactus/rfsprocess.php', rfscallback, formObject);
		}
	}

	var rfscallback = { success:rfshandleSuccess, failure: rfshandleFailure, argument: ['foo','bar'] };
	
	/****************************************************************/
	
	var psthandleSuccess = function(o){   
		if(o.responseText !== undefined){
			if (o.responseText == "Err")
			{
				document.getElementById('divvericode').innerHTML = "Enter valid code"; 
				document.getElementById('divvericode').style.visibility = "visible";
			}
			else
			{
				document.getElementById('maincontentrhs').innerHTML = "";
				document.getElementById('maincontentrhs').innerHTML = o.responseText; 
			}
		}
	}
	
	var psthandleFailure = function(o){  
		if(o.responseText !== undefined){
			document.getElementById('divvericode').style.visibility = "visible";
			document.getElementById('divvericode').innerHTML = "Error in server" ;
		}
	}
	
	//Post Your Profile page
	function validatePstprfform(){
		var returnVal = false;
		resetErrPstprf();
		// Check to make sure that the verification code field is not empty.
		returnVericode = validatefields(document.forms[1].txtcap,"divvericode", "txtcap");
		if (returnVericode){
			returnVericode = isAlphanumDiv(document.forms[1].txtcap.value,"divvericode", "txtcap", "Enter valid value");
		}
		else{
			returnVericode = false;
		}
		// Check to make sure the resume field is not empty.
		returnValrestxt = validatefields(document.forms[1].txtrestxt, "spnrestxt", "txtrestxt");
		// Check to make sure the technical expertise field is not empty.
		returnValtechexprt = validatefields(document.forms[1].txttechexprt, "spntechexprt", "txttechexprt");
		if (!returnValrestxt){
			returnValtechexprt = false;
		}
		// Check to make sure the education field is not empty.
		returnValedu = validatefields(document.forms[1].txtedu, "spnedu", "txtedu");		
		if (!returnValtechexprt){
			returnValedu = false;
		}
		// Check to make sure the years of exp. field is not empty.
		returnValyrsexp = validatefields(document.forms[1].txtyrsexp, "spnyrsexp", "txtyrsexp");
		if (returnValyrsexp){
			returnValyrsexp = isNumeric(document.forms[1].txtyrsexp.value, "spnyrsexpv", "txtyrsexp");
		}
		else{
			returnValyrsexp = false;
		}
		if (!returnValedu){
			returnValyrsexp = false;
		}
		// Check to make sure the phone no. field is not empty.
		if (isWhitespace(document.forms[1].txtphno)){
			returnValphno = isPhone(document.forms[1].txtphno.value,"spnphnov", "txtphno");
		}
		else{
			returnValphno = false;
		}
		if (!returnValyrsexp){
			returnValphno = false;
		}
		// Check to make sure that the email name field is not empty.
		returnValem = validatefields(document.forms[1].txtem, "spnem", "txtem");
		if (returnValem){
			returnValem = isEmail(document.forms[1].txtem.value, "spnemv", "txtem");
		}
		else{
			returnValem = false;
		}
		if (!returnValphno){
			returnValem = false;
		}
		// Check to make sure that the country name field is not empty.
		returnValcntry = validatefields(document.forms[1].txtcntry, "spncntry", "txtcntry");
		if (returnValcntry){
			returnValcntry = isAlphaspace(document.forms[1].txtcntry.value, "spncntryv", "txtcntry");
		}
		else{
			returnValcntry = false;
		}
		if (!returnValem){
			returnValcntry = false;
		}
		// Check to make sure that the last name field has valid values.
		if (isWhitespace(document.forms[1].txtlnm)){
			returnVallnm = isAlphaspace(document.forms[1].txtlnm.value,"spnlnmv", "txtlnm");
		}
		else{
			returnVallnm = false;
		}
		if (!returnValcntry){
			returnVallnm = false;
		}

		// Check to make sure that the first name field is not empty.
		returnValfnm = validatefields(document.forms[1].txtfnm,"spnfnm", "txtfnm");
		if (returnValfnm){
			returnValfnm = isAlphaspace(document.forms[1].txtfnm.value,"spnfnmv", "txtfnm");
		}
		else{
			returnValfnm = false;
		}
		if (!returnVallnm){
			returnValfnm = false;
		}
		returnVal = returnValfnm;
		//return returnVal;
		
		if (returnVal)
		{
			var formObject = document.getElementById('frmpst');
			ARIMAANAJAX.util.Connect.setForm(formObject, false, true);
			var cObj = ARIMAANAJAX.util.Connect.asyncRequest('POST', 'http://www.arimaan.com/careers/postprofileprocess.php', pstcallback, formObject);
		}
	}
	
	var pstcallback = { success:psthandleSuccess, failure: psthandleFailure, argument: ['foo','bar'] };
	
	/****************************************************************/
	
	var fdbkhandleSuccess = function(o){   
		if(o.responseText !== undefined){
			if (o.responseText == "Err")
			{
				document.getElementById('divvericode').innerHTML = "Enter valid code"; 
				document.getElementById('divvericode').style.visibility = "visible";
			}
			else
			{
				document.getElementById('maincontentrhs').innerHTML = "";
				document.getElementById('maincontentrhs').innerHTML = o.responseText; 
			}
		}
	}
	
	var fdbkhandleFailure = function(o){  
		if(o.responseText !== undefined){
			document.getElementById('divvericode').style.visibility = "visible";
			document.getElementById('divvericode').innerHTML = "Error in server" ;
		}
	}
	
	function validateFeedbackform(){
		var returnVal = false;
		resetErrFeedback();
		// Check to make sure that the verification code field is not empty.
		returnVericode = validatefields(document.forms[1].txtcap,"divvericode", "txtcap");
		if (returnVericode){
			returnVericode = isAlphanumDiv(document.forms[1].txtcap.value,"divvericode", "txtcap", "Enter valid value");
		}
		else{
			returnVericode = false;
		}
		// Check to make sure that the comments field is not empty.
		returnValcmnt = validatefields(document.forms[1].txtcmnt, "spncmnt", "txtcmnt");
		// Check to make sure that the subject field is not empty.
		returnValsub = validatefields(document.forms[1].txtsub, "spnsub", "txtsub");
		if (returnValsub){
			returnValsub = isAlphaspace(document.forms[1].txtsub.value, "spnsubv", "txtsub");
		}
		else{
			returnValsub = false;
		}			
		if (!returnValcmnt){
			returnValsub = false;
		}
		// Check to make sure that the email field is not empty.
		returnValem = validatefields(document.forms[1].txtem, "spnem", "txtem");
		if (returnValem){
			returnValem = isEmail(document.forms[1].txtem.value, "spnemv", "txtem");
		}
		else{
			returnValem = false;
		}
		if (!returnValsub){
			returnValem = false;
		}			
		// Check to make sure that the first name field is not empty.
		returnValfnm = validatefields(document.forms[1].txtfnm,"spnfnm", "txtfnm");
		if (returnValfnm){
			returnValfnm = isAlphaspace(document.forms[1].txtfnm.value,"spnfnmv", "txtfnm");
		}
		else{
			returnValfnm = false;
		}
		if (!returnValem){
			returnValfnm = false;
		}
		// Check to make sure that the last name field has valid values.
		if (isWhitespace(document.forms[1].txtlnm)){
			returnVallnm = isAlphaspace(document.forms[1].txtlnm.value,"spnlnmv", "txtlnm");
		}
		else{
			returnVallnm = false;
		}
		if (!returnValfnm){
			returnVallnm = false;
		}
		returnVal = returnVallnm;

		if (returnVal)
		{
			var formObject = document.getElementById('frmfeedback');
			ARIMAANAJAX.util.Connect.setForm(formObject,false,true);
			var cObj = ARIMAANAJAX.util.Connect.asyncRequest('POST', 'http://www.arimaan.com/contactus/feedbackprocess.php', callback, formObject);
		}
	}

	var callback = { success:fdbkhandleSuccess, failure: fdbkhandleFailure, argument: ['foo','bar'] };
	
	/****************************************************************/
	
	var sschandleSuccess = function(o){   
		if(o.responseText !== undefined){
			if (o.responseText == "Err")
			{
				document.getElementById('divvericode').innerHTML = "Enter valid code"; 
				document.getElementById('divvericode').style.visibility = "visible";
			}
			else
			{
				document.getElementById('maincontentrhs').innerHTML = "";
				document.getElementById('maincontentrhs').innerHTML = o.responseText; 
			}
		}
	}
	
	var sschandleFailure = function(o){  
		if(o.responseText !== undefined){
			document.getElementById('divvericode').style.visibility = "visible";
			document.getElementById('divvericode').innerHTML = "Error in server" ;
		}
	}
	
	function validateSscform(){
		var returnVal = false;
		resetErrSubscribe();
		// Check to make sure that the verification code field is not empty.
		returnVericode = validatefields(document.forms[1].txtcap,"divvericode", "txtcap");
		if (returnVericode){
			returnVericode = isAlphanumDiv(document.forms[1].txtcap.value,"divvericode", "txtcap", "Enter valid value");
		}
		else{
			returnVericode = false;
		}
		// Check to make sure that the info field has valid options selected.
		if (document.forms[1].optinfo.options[document.forms[1].optinfo.selectedIndex].value == "NIL"){
			document.getElementById("spnoptinfo").style.visibility = "visible";
			document.forms[1].optemfmt.options[0].focus();
			returnValinfo = false;
		}
		else{
			returnValinfo = true;
		}				
		// Check to make sure that the email format field has valid options selected.
		if (document.forms[1].optemfmt.options[document.forms[1].optemfmt.selectedIndex].value == "NIL"){
			document.getElementById("spnoptemfmt").style.visibility = "visible";
			document.forms[1].optemfmt.options[0].focus();
			returnValfmt = false;
		}
		else{
			returnValfmt = true;
		}
		if (!returnValinfo){
			returnValfmt = false;
		}
		// Check to make sure that the country field has valid values.
		if (isWhitespace(document.forms[1].txtcntry)){
			returnValcnty = isAlphaspace(document.forms[1].txtcntry.value,"spncntryv", "txtcntry");
		}
		else{
			returnValcnty = false;
		}
		if (!returnValfmt){
			returnValcnty = false;
		}
		// Check to make sure that the email field is not empty.
		returnValem = validatefields(document.forms[1].txtem, "spnem", "txtem");
		if (returnValem){
			returnValem = isEmail(document.forms[1].txtem.value, "spnemv", "txtem");
		}
		else{
			returnValem = false;
		}
		if (!returnValcnty){
			returnValem = false;
		}
		// Check to make sure that the company name field has valid values.
		if (isWhitespace(document.forms[1].txtcmpnm)){
			returnValcmp = isAlphaspace(document.forms[1].txtcmpnm.value, "spncmpnmv", "txtcmpnm");
		}
		else{
			returnValcmp = false;
		}
		if (!returnValem){
			returnValcmp = false;
		}
		// Check to make sure that the last name field has valid values.
		if (isWhitespace(document.forms[1].txtlnm)){
			returnVallnm = isAlphaspace(document.forms[1].txtlnm.value, "spnlnmv", "txtlnm");
		}
		else{
			returnVallnm = false;
		}
		if (!returnValcmp){
			returnVallnm = false;
		}
		// Check to make sure that the first name field is not empty.
		returnValfnm = validatefields(document.forms[1].txtfnm, "spnfnm", "txtfnm");
		if (returnValfnm){
			returnValfnm = isAlphaspace(document.forms[1].txtfnm.value, "spnfnmv", "txtfnm");
		}
		else{
			returnValfnm = false;
		}
		if (!returnVallnm){
			returnValfnm = false;
		}
		returnVal = returnValfnm;
		
		if (returnVal)
		{
			var formObject = document.getElementById('frmssc');
			ARIMAANAJAX.util.Connect.setForm(formObject, false, true);
			var cObj = ARIMAANAJAX.util.Connect.asyncRequest('POST', 'http://www.arimaan.com/contactus/subscribeprocess.php', ssccallback, formObject);
		}
	}
	
	var ssccallback = { success:sschandleSuccess, failure: sschandleFailure, argument: ['foo','bar'] };
	
	/****************************************************************/

	var shandleSuccess = function(o){   
		if(o.responseText !== undefined){
			if (o.responseText == "Err")
			{
				document.getElementById('divvericode').innerHTML = "Enter valid code"; 
				document.getElementById('divvericode').style.visibility = "visible";
			}
			else
			{
				document.getElementById('maincontentrhs').innerHTML = "";
				document.getElementById('maincontentrhs').innerHTML = o.responseText; 
			}
		}
	}
	
	var shandleFailure = function(o){  
		if(o.responseText !== undefined){
			document.getElementById('divvericode').style.visibility = "visible";
			document.getElementById('divvericode').innerHTML = "Error in server" ;
			alert('responseText ' + o.responseText);
		}
	}
		
	function validateSform(){
		var returnVal = false;
		resetErrSform();
		// Check to make sure that the verification code field is not empty.
		returnVericode = validatefields(document.forms[1].txtcap,"divvericode", "txtcap");
		if (returnVericode){
			returnVericode = isAlphanumDiv(document.forms[1].txtcap.value,"divvericode", "txtcap", "Enter valid value");
		}
		else{
			returnVericode = false;
		}
		// Check to make sure that the country field has valid values.
		if (isWhitespace(document.forms[1].attribute5)){
			returnValcnty = isAlphaspace(document.forms[1].attribute5.value,"spncntryv", "attribute5");
		}
		else{
			returnValcnty = false;
		}
		if (!returnVericode){
			returnValcnty = false;
		}
		// Check to make sure that the email field is not empty.
		returnValem = validatefields(document.forms[1].email, "spnem", "email");
		if (returnValem){
			returnValem = isEmail(document.forms[1].email.value, "spnemv", "email");
		}
		else{
			returnValem = false;
		}
		if (!returnValcnty){
			returnValem = false;
		}
		// Check to make sure that the company name field has valid values.
		if (isWhitespace(document.forms[1].attribute4)){
			returnValcmp = isAlphaspace(document.forms[1].attribute4.value, "spncmpnmv", "attribute4");
		}
		else{
			returnValcmp = false;
		}
		if (!returnValem){
			returnValcmp = false;
		}
		// Check to make sure that the last name field has valid values.
		if (isWhitespace(document.forms[1].attribute3)){
			returnVallnm = isAlphaspace(document.forms[1].attribute3.value, "spnlnmv", "attribute3");
		}
		else{
			returnVallnm = false;
		}
		if (!returnValcmp){
			returnVallnm = false;
		}
		// Check to make sure that the first name field is not empty.
		returnValfnm = validatefields(document.forms[1].attribute2, "spnfnm", "attribute2");
		if (returnValfnm){
			returnValfnm = isAlphaspace(document.forms[1].attribute2.value, "spnfnmv", "attribute2");
		}
		else{
			returnValfnm = false;
		}
		if (!returnVallnm){
			returnValfnm = false;
		}
		returnVal = returnValfnm;
		
		alert(' returnVal ' + returnVal);

		if (returnVal)
		{
			var formObject = document.getElementById('subscribeform');
			ARIMAANAJAX.util.Connect.setForm(formObject, false, true);
			var cObj = ARIMAANAJAX.util.Connect.asyncRequest('POST', 'http://www.arimaan.com/lists/?p=subscribe', scallback, formObject);
			alert("cObj " + cObj.tId );
			alert("scallback " + scallback );
		}
	}
	
	var scallback = { success:shandleSuccess, failure: shandleFailure, argument: ['foo','bar'] };  
	
	
	/****************************************************************/

	function agcsearch(frm) {
		if (document.getElementById(frm).search.value=='') {
			alert("Please enter a keyword");
			document.getElementById(frm).search.focus();
			return false;
		}
	}
	
	
	var quotations = new Array();
	quotations[0]= "Thank you for your great work and patience. - <b class='contclntquoteaut'>Renzo Brain, Grande Solutions</b>";
	quotations[1]= "We are very happy with the  result of your  delivery and congratulate you for  your job. - <b class='contclntquoteaut'>Juan Puebla, Virtus360 Software</b>";
	quotations[2]= "Your service has been great. - <b class='contclntquoteaut'>Simon Carter, DataMystic</b>";
	quotations[3]= "The site looks good. Thank you. - <b class='contclntquoteaut'>Tabs Senevi, Emediaa</b>";
	quotations[4]= "You provided the best solution. - <b class='contclntquoteaut'>Deepak, e-care india</b>";
	function display() {
		a = Math.floor(Math.random()*quotations.length);
		document.getElementById('quotation').innerHTML=quotations[a];
		setTimeout("display()",5000); }