// JavaScript Document
function na_preload_img()
{ 
  var img_list = na_preload_img.arguments;
  if (document.preloadlist == null) 
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  } 
}

function setfocus(){ 
	document.forms[0].emailid.focus();
}

function Validate(FormNm){
	if(FormNm.emailid.value==""){
		alert ("Please Enter User Name")
		FormNm.emailid.focus();
		return false;
	}                               
	else if (FormNm.txtPassword.value==""){
		alert ("Please Enter Password")
		FormNm.txtPassword.focus();
		return false;
	}
	else {
		return true;
	}
}
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=555,height=565,left =175,top = 20');");
}
function combinepopUp (URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=315,left =175,top = 20');");
}
function impUp() {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('imp-arabic.htm', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=565,left =175,top = 20');");
}
function popndexUp(URL,WD,HT) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+WD+",height="+HT+",left =175,top = 20');");
}
function MyListingDetails(formnm,SubID)
{
	formnm.ID.value = SubID;
	formnm.submit();
}
<!--
function checkForm(TheForm) {
  // url, title, description
  if (TheForm.txtname.value.length == 0) {
   alert("You forgot to enter the Your Name!");
   TheForm.txtname.focus();
   return false;
  }
  if (TheForm.txttel.value.length == 0) {
   alert("You forgot to enter the Telephone No!");
   TheForm.txttel.focus();
   return false;
  }
  if (TheForm.txtemail.value.length == 0) {
   alert("You forgot to enter the Email ID!");
   TheForm.txtemail.focus();
   return false;
  }
  if (TheForm.txtcomments.value.length == 0) {
   alert("You forgot to enter the Your Comments or Suggestion!");
   TheForm.txtcomments.focus();
   return false;
  }
  return true;
}// end function checkalForm
function printinv(uid) {
win3 = window.open("print_invoice.php?id=" + uid + "", "Invoice", "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=576,height=470,left =105,top = 20")
}
// -->
