function ImgTable(Img_Name)
{
document.write('<table cellpadding="0" cellspacing="0" border="0">')
	document.write('<tr>')
		document.write('<Td width="2"><img src="./images/pht_topleftimg.gif" border="0"></TD>')
		document.write('<Td class="pht_bg"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td width="3"><img src="./images/pht_toprightimg.gif" border="0"></TD>')
	document.write('</tr>')
	document.write('<Tr>')
		document.write('<Td class="pht_bg"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td align="center"><img src="./images/'+Img_Name+'" border="0"></TD>')
		document.write('<Td background="./images/pht_rightstrip.gif"><img src="./images/space.gif" border="0"></TD>')
	document.write('</TR>')
	document.write('<Tr>')
		document.write('<Td><img src="./images/pht_botleftimg.gif" border="0"></TD>')
		document.write('<Td background="./images/pht_botstrip.gif"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td><img src="./images/pht_botrightimg.gif" border="0"></TD>')
	document.write('</TR>')
document.write('</table>')
}

function ImgTable1(Img_Name)
{
document.write('<table cellpadding="0" cellspacing="0" border="0">')
	document.write('<tr>')
		document.write('<Td width="2" class="pht_bg1"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td class="pht_bg1"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td width="3"><img src="./images/pht_toprightimg1.gif" border="0"></TD>')
	document.write('</tr>')
	document.write('<Tr>')
		document.write('<Td class="pht_bg1"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td align="center"><img src="./images/'+Img_Name+'" border="0"></TD>')
		document.write('<Td background="./images/pht_rightstrip1.gif"><img src="./images/space.gif" border="0"></TD>')
	document.write('</TR>')
	document.write('<Tr>')
		document.write('<Td><img src="./images/pht_botleftimg1.gif" border="0"></TD>')
		document.write('<Td background="./images/pht_botstrip1.gif"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td><img src="./images/pht_botrightimg1.gif" border="0"></TD>')
	document.write('</TR>')
document.write('</table>')
}


function ImgTable2(Img_Name)
{
document.write('<table cellpadding="0" cellspacing="0" border="0">')
	document.write('<tr>')
		document.write('<Td width="2" class="pht_bg2"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td class="pht_bg2"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td width="3"><img src="./images/pht_toprightimg2.gif" border="0"></TD>')
	document.write('</tr>')
	document.write('<Tr>')
		document.write('<Td class="pht_bg2"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td align="center"><img src="./images/'+Img_Name+'" border="0"></TD>')
		document.write('<Td background="./images/pht_rightstrip2.gif"><img src="./images/space.gif" border="0"></TD>')
	document.write('</TR>')
	document.write('<Tr>')
		document.write('<Td><img src="./images/pht_botleftimg2.gif" border="0"></TD>')
		document.write('<Td background="./images/pht_botstrip2.gif"><img src="./images/space.gif" border="0"></TD>')
		document.write('<Td><img src="./images/pht_botrightimg2.gif" border="0"></TD>')
	document.write('</TR>')
document.write('</table>')
}

function doSubmit()
{
	printMessage("",3)
	
	
	strTitle=Trim(document.frm.txtTitle.value)
	strFName= Trim(document.frm.txtFName.value)
	strAff=	Trim(document.frm.txtAff.value)
	strAddress=Trim(document.frm.txtAddress.value)
	strState=Trim(document.frm.txtState.value)
	strZip=Trim(document.frm.txtZip.value)
	strPhone= Trim(document.frm.txtPhone.value)	
	strMail=Trim(document.frm.txtMail.value)
			
	
	if(strTitle=="")
	{
		Message="Please Enter The Title";
		document.frm.txtTitle.value="";
		document.frm.txtTitle.focus();
		printMessage(Message,1)
		return;
	}
	
	if(strFName=="")
	{
		Message="Please Enter Your Name";
		document.frm.txtFName.value="";
		document.frm.txtFName.focus();
		printMessage(Message,1)
		return;
	}
	
	if (document.frm.chkqua1.checked==false && document.frm.chkqua2.checked==false && document.frm.chkqua3.checked==false && document.frm.chkqua4.checked==false)
	{
		Message="Please Select Your Qualification";
		document.frm.chkqua1.value="";
		printMessage(Message,1)
		return;
	}
	
	
	if (strAff=="")
	{
		Message="Please Enter The Organizational Affiliation";
		document.frm.txtAff.value="";
		printMessage(Message,1)
		document.frm.txtAff.focus();								 
		return					
	}
	
	if (strAddress=="")
	{
		Message="Please Enter Your Street Address";
		document.frm.txtAddress.value="";
		printMessage(Message,1)
		document.frm.txtAddress.focus();								 
		return					
	}
	
	if (strState=="")
	{
		Message="Please Enter The State";
		document.frm.txtState.value="";
		printMessage(Message,1)
		document.frm.txtState.focus();								 
		return					
	}
	
	
	if (strZip=="")
	{
		Message="Please Enter The Zip Code";
		document.frm.txtZip.value="";
		printMessage(Message,1)
		document.frm.txtZip.focus();								 
		return					
	}
	
		
	if (strPhone == "")
	{
		Message="Please Enter The Business Phone Number";
		printMessage(Message,1)
		document.frm.txtPhone.value = "";
		document.frm.txtPhone.focus();
		return;
	}
	
	if (strMail == "")
	{
		Message="Please Enter Your Email Address";
		printMessage(Message,1)
		document.frm.txtMail.value = "";
		document.frm.txtMail.focus();
		return;
	}
	
	
	if (Trim(document.frm.txtMail.value)!="" &&(IsEmail(Trim(document.frm.txtMail.value)) == false))
	{
		Message="Please Enter a valid Email Address"
		printMessage(Message,1)
		document.frm.txtMail.focus();
		return
	}	
	else
	{	
		document.frm.type.value="save"	
		document.frm.action ="Registration.asp"
		document.frm.submit()     
		
	}
}

function doReset()
{
	document.frm.reset();
	printMessage("",3)
}	
		
		
function printMessage(message,type)
 {
	
	message="<font CLASS='copyerror'><b>"+message+"</B></FONT>"

	document.getElementById("txtStatus").innerHTML = message
 }
 
 function send()
 {
 	document.frm.type.value=""	
	document.frm.action ="Registration.asp"
	document.frm.submit()    
 }
 
  function accept()
 {
 	document.frm.type.value="accept"	
	document.frm.action ="Registration.asp"
	document.frm.submit()    
 }