function create_form(id){
	obj = document.getElementById(id);
	if(obj != null)
	obj.innerHTML = '<form name="serviceAvailability" action="https://commandcenter.telekenex.com/bcs/mail" method="post" onsubmit="return SendForm1();">' +
'<div class="style4">STREET ADDRESS</div><div><input type="text" name="street" style="width:150px;"/></div>' +
		'<div class="style4">CITY</div><div><input type="text" name="city" style="width:150px;"/></div>' +
		'<div class="style4">STATE <font style="margin-left:25px">ZIP CODE</font></div>' +
		'<div><input type="text" name="state" style="width:54px;"/><input type="text" name="zip" style="width:55px;margin-left:5px"/></div>' +
		'<div class="style4">TEL.</div>' +
		'<div><input type="text" name="code_phone" maxlength="3" onkeypress="return numbersonly(this, event)" style="width:54px;"/><input type="text" name="phone" maxlength="3" onkeypress="return numbersonly(this, event)" style="width:55px; margin-left:5px"/><font class="style4" style="margin-left:5px">-XXXX</font></div>' +
		'<div style="height:20px"></div>' +
		'<div align="center">' +
			'<input type="submit" value=" " style="background: url(layoutfiles/servicesubmit.gif);width:65px;height:26px"/>' +
		'</div>' +
	'</form>';
}
function create_form_(id,formId,page){
	obj = document.getElementById(id);
	page="https://69.28.111.13:8443/telekenex/"+page;
	if(obj != null)
	obj.innerHTML = '<form name="serviceAvailability" action="https://commandcenter.telekenex.com/bcs/mail" method="post" onsubmit="return SendForm1();">' +
		'<div class="style4">STREET ADDRESS</div><div><input type="text" name="street" style="width:150px;"/></div>' +
		'<div class="style4">CITY</div><div><input type="text" name="city" style="width:150px;"/></div>' +
		'<div class="style4">STATE <font style="margin-left:25px">ZIP CODE</font></div>' +
		'<div><input type="text" name="state" style="width:54px;"/><input type="text" name="zip" style="width:55px;margin-left:5px"/></div>' +
		'<div class="style4">TEL.</div>' +
		'<div><input type="text" name="code_phone" maxlength="3" onkeypress="return numbersonly(this, event)" style="width:54px;"/><input type="text" name="phone" maxlength="3" onkeypress="return numbersonly(this, event)" style="width:55px; margin-left:5px"/><font class="style4" style="margin-left:5px">-XXXX</font></div>' +
		'<div style="height:20px"></div>' +
	'<input type="hidden" name="formId" value="'+formId+'"/>'+
	 '<input type="hidden" name="page" value="'+page+'"/>'+
		'<div align="center">' +
			'<input type="submit" value=" " style="background: url(layoutfiles/servicesubmit.gif);width:65px;height:26px"/>' +
		'</div>' +
	'</form>';
} 

function stateShow(){
	var sURL = location.href;
   
   if (sURL.indexOf("?") > 0) {
         var arrParams = sURL.split("?");
       var shtat = unescape(arrParams[1]);
       if(shtat !='error')
         document.getElementById("shtat").innerHTML = "<b>YES</b>, Telekenex offers the following business communications in <b>" + shtat + "</b>";
       else
         alert('Please enter correct City and State');
   }
}

function errorState(){
	var sURL = location.href;
   
   if (sURL.indexOf("?") > 0) {
         var arrParams = sURL.split("?");
       var shtat = unescape(arrParams[1]);
         if(shtat == 'error')
		 alert('Please enter correct City and State');
   }
}

