	var contenturl="";
	var divid="";
	var tmp_status = false;
	var chkpack = "";
	function showContacton1(con_name,con_email,con_company,con_location,con_interest,con_phone1,con_phone2,con_phone3,refurl,dvid,pack) { 
		if(tmp_status) {
			setTimeout("showContacton1('"+con_name+"','"+con_email+"','"+con_company+"','"+con_location+"','"+con_interest+"','"+con_phone1+"','"+con_phone2+"','"+con_phone3+"','"+refurl+"','"+dvid+"','"+pack+"')",200);
			return false;
		}
		divid=dvid;
		chkpack = pack;
		tmp_status = true;
		contenturl="/js/contactsource.php?chk_submit=Submit&type=popup&package="+pack+"&nameForm="+con_name+"&cnameForm="+con_company+"&emailForm="+con_email+"&locationsForm="+con_location+"&txt_phone1="+con_phone1+"&txt_phone2="+con_phone2+"&txt_phone3="+con_phone3+"&txt_interest="+con_interest+"&pgname="+refurl;
		//prompt('',contenturl);
		res=loadXMLDoc1(contenturl,'handleRequest1');
	}
	function reset_Objvalue(formobj){
		for (i=0;i<formobj.length;i++) {
			formobj[i].checked=false;
		}
	}

	function showdivcontent(result) {
		if(result=="PopSuccess") {
			if(chkpack=="Complete Office Package") {
				document.getElementById("tbl_register1").style.display = 'none';
				document.getElementById("tbl_thanks1").style.display = '';
			} else if(chkpack=="Business Wirelss Package") {
				document.getElementById("tbl_register2").style.display = 'none';
				document.getElementById("tbl_thanks2").style.display = '';
			} else if(chkpack=="Business Voice Package") {
				document.getElementById("tbl_register3").style.display = 'none';
				document.getElementById("tbl_thanks3").style.display = '';
			} else if(chkpack=="Business Conferencing Package") {
				document.getElementById("tbl_register4").style.display = 'none';
				document.getElementById("tbl_thanks4").style.display = '';
			} else if(chkpack=="A La Carte Package") {
				document.getElementById("tbl_register5").style.display = 'none';
				document.getElementById("tbl_thanks5").style.display = '';
			}
		}
		tmp_status = false;
	}

	/* width return result */
	function loadXMLDoc1(url,callbackFunction) {
	   try { req = new ActiveXObject("Msxml2.XMLHTTP"); }
	   catch(e) {
		  try { req = new ActiveXObject("Microsoft.XMLHTTP"); }
		  catch(oc) { req = null; }
	   }
	   if (!req && typeof XMLHttpRequest != "undefined") { req = new XMLHttpRequest(); }

	   if (req != null) {
		  req.onreadystatechange = eval(callbackFunction);
		  req.open("GET", url, true);
		  req.send(null);
	   }
	}
	var handleRequest1 = function() {
		var returnresult="";
		if (req.readyState == 4 && req.status == 200) {
			if (req.responseText!="") {
				returnresult = req.responseText;
			}else{
				returnresult= "";
				tmp_status = false;
				return false;

			}
			showdivcontent(returnresult);
		} else {
				returnresult="";
		}
	}
	function validateFields_pop(frm,packg) {
		str="";
		res1_pop="";
		var packge = packg;
		if(Trim(frm.nameForm.value)=="") {
			str += "Contact Name.\n";
		}
		if(Trim(frm.emailForm.value)=="") {
			str += "Email.\n";
		} else if (!IsvalidEmail(frm.emailForm.value)){
			str +="Valid Email.\n";
		}
		if(Trim(frm.locationsForm.value)=="") {
			str += "# of Locations.\n";
		}
		if (str!="") {
			msg="Please enter the following details\n";
			msg = msg + "----------------------------------------\n";
			msg = msg + str;
			alert(msg);
			return false;
		} else {
			con_name=frm.nameForm.value;
			con_email=frm.emailForm.value;
			con_company=frm.cnameForm.value;
			con_location=frm.locationsForm.value;
			con_interest="";
			con_phone1=frm.txt_phone1.value;
			con_phone2=frm.txt_phone2.value;
			con_phone3=frm.txt_phone3.value;
			pack=packge;

			showContacton1(con_name,con_email,con_company,con_location,con_interest,con_phone1,con_phone2,con_phone3,refurl,'div_provide1',pack);
			return false;
		}
	}
