﻿
function clr() 
{
	document.Area.id.value=""
}

function clrzip() 
{
	document.frmList.Zip.value=""
}

function ShowSSL(strURL, intheight, intwidth) {
	var OpenU=window.open(strURL,"PopUp","height="+intheight+",width="+intwidth+",scrollbars=yes,resizable=yes,status=no,menubar=no");
}


function checkKeyW(ObjFrm)
				  {
					if (ObjFrm.keyword.value=="Start new search" || ObjFrm.keyword.value=="")
					{
						alert(" Please enter Search Keyword!");
						ObjFrm.keyword.select();
						ObjFrm.keyword.focus();
						return false;
					}
					else
					{
						return true
					}
				  }
				  
						   function checkZZp(ObjFrm)
								{
									isValid=true
									strZip=ObjFrm.zipcode.value
									if (strZip.length==0 || strZip.length>5 || strZip==" ")
									{
											alert(" Please enter valid Zip code.");
											ObjFrm.zipcode.value="Enter ZIP CODE";
											ObjFrm.hidKey.value="";
											ObjFrm.zipcode.select();
											ObjFrm.zipcode.focus();
											return false;
									}
									else
									{
										for (i=0;i<strZip.length;i++)
										{
											chr=strZip.charAt(i);
											if (chr<'0' || chr>'9')
											{
												isValid=false;
												break;
											}
										}
										if (isValid==false)
										{
											alert("Please enter only Numeric Values");
											ObjFrm.zipcode.value="Enter ZIP CODE";
											ObjFrm.hidKey.value="";
											ObjFrm.zipcode.select();
											ObjFrm.zipcode.focus();
											return false;
										}
										else
										{
												
												ObjFrm.hidKey.value="1"
												return true;
										}
									}
								}
								function countChar(OBJ)
								{
									keyww=OBJ.value;
									if (keyww.length>5)
									{
										newzip=keyww.substring(0,4);
										OBJ.value=newzip;
										OBJ.focus();
										alert("Error! Only 5 Chars Zip code allowed");
									}
								}
