function dispDate()
{
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
document.write("<left>&nbsp;&nbsp;" + lmonth + " ");
document.write(date + ", " + year + "</left>");
}



function CheckFields_Enquiry()
{
if(document.FRM_Enquiry.Full_Name.value == 0)
alert("Your Full Name is required...")

else if(document.FRM_Enquiry.EMail_Address.value == 0)
alert("Your E-Mail Address is required...")

else if(document.FRM_Enquiry.Address.value == 0)
alert("Your Address is required...")

else if(document.FRM_Enquiry.Telephone_No.value == 0)
alert("Your Telephone No. is required...")

else if(document.FRM_Enquiry.Questions_Queries.value == 0)
alert("Your Questions or Queries are required...")

else if(document.FRM_Enquiry.IV.value == 0)
alert("Image Verification No. is required...")

else

document.FRM_Enquiry.submit()
}



//


function doLogin()
{
if (document.FRM_Login.UV_LoginID.value==0 || document.FRM_Login.UV_Password.value==0)
alert("Login ID & Password Fields cannot have blank entries...")

else

document.FRM_Login.submit()
}


//



function doSearch()
{
if (document.FRM.term.value==0 || document.FRM.term.value=="Search for Products...")
alert("Enter an appropriate Search Term or Phrase to begin Searching...")

else

document.FRM.submit()
}


//

































//



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



//


function SetImages()
{
if(pn=="Home")
MM_swapImage('Home','','nav/menus/home_ov.gif',1)
}











//


function CheckFields_Add_User()
{
if(document.FRM.UV_Name.value == 0)
alert("User / Vendor Name is required...")

else if(document.FRM.UV_Company_Name.value == 0)
alert("Company Name is required...")

else if(document.FRM.UV_Address_1.value == 0)
alert("Address Line 1 is required...")

else if(document.FRM.UV_Telephone_Number.value == 0)
alert("Telephone Number is required...")

else if(document.FRM.UV_EMail_Address.value == 0)
alert("E-Mail Address is required...")

else if(document.FRM.UV_LoginID.value == 0)
alert("Login ID cannot be blank...")

else if(document.FRM.UV_Password.value == 0)
alert("Password cannot be blank...")


else

document.FRM.submit()
}



//




//



function CheckFields_Update_User()
{
if(document.FRM_Update_User.UV_Name.value == 0)
alert("User / Vendor Name is required...")

else if(document.FRM_Update_User.UV_Address_1.value == 0)
alert("Address Line 1 is required...")

else if(document.FRM_Update_User.UV_Telephone_Number.value == 0)
alert("Telephone Number is required...")

else if(document.FRM_Update_User.UV_EMail_Address.value == 0)
alert("E-Mail Address is required...")

//else if(document.FRM_Update_User.UV_Password.value == 0)
//alert("Password is required...")

else

document.FRM_Update_User.submit()
}



//



function DoProductJump()
{
var URL = document.FRMJump.Select_Location.options[document.FRMJump.Select_Location.selectedIndex].value;
parent.frames['Content'].location.href = URL;
}



//






function DoProductSearch()
{
if(document.FRM.Search.value == 0)
alert("Search String cannot be Empty...")

else if(document.FRM.Category.value == "All")

parent.frames['top'].location.href = "../search/search_products_all.asp?Do_Search=True" + "&Search=" + document.FRM.Search.value + "&Search_In=" + document.FRM.Search_In.value

else

document.FRM.action = parent.frames['Content'].location.href

document.FRM.submit()

}




//












// Anytime Anywhere Web Page Clock Generator
// Clock Script Generated at
// http://www.rainbow.arch.scriptmania.com/tools/clock

function timeSource(){
   x=new Date(timeNow().getUTCFullYear(),timeNow().getUTCMonth(),timeNow().getUTCDate(),timeNow().getUTCHours(),timeNow().getUTCMinutes(),timeNow().getUTCSeconds());
   x.setTime(x.getTime()+19800000);
   return x;
}
function timeNow(){
   return new Date();
}
function leadingZero(x){
   return (x>9)?x:'0'+x;
}
function twelveHour(x){
   if(x==0){
      x=12;
   }
   return (x>12)?x-=12:x;
}
function displayTime(){
   if(fr==0){
      fr=1;
      document.write('<span id="tP">'+eval(outputTime)+'</span>');
   }
   document.getElementById('tP').innerHTML=eval(outputTime);
   setTimeout('displayTime()',1000);
}
function amPMsymbol(x){
   return (x>11)?'pm':'am';
}
function fixYear4(x){
   return (x<500)?x+1900:x;
}
var dayNames=new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
var monthNames=new Array('1','2','3','4','5','6','7','8','9','10','11','12');
var fr=0;


var outputTime="timeSource().getDate()+'/'+monthNames[timeSource().getMonth()]+'/'+fixYear4(timeSource().getYear())+' '+':'+':'+' '+leadingZero(twelveHour(timeSource().getHours()))+':'+leadingZero(timeSource().getMinutes())+':'+leadingZero(timeSource().getSeconds())+' '+amPMsymbol(timeSource().getHours())";



// Use the following within your HTML to Start/display your clock
// <script language="JavaScript">displayTime();</script>



//



function ClearValues()
{
document.FRM.term.value = ""
}


//


function Bioscope()
{
window.open('/bioscope/default.asp','BWin','width=875,height=600,scrollbars=yes')
}




//







//



function CheckFields_Resume()
{
if (document.FRM.Full_Name.value==0)
alert("Your Full Name is required...")

else if (document.FRM.Age.value==0)
alert("Your Age is required...")

else if (document.FRM.EMail_Address.value==0)
alert("Your E-Mail Address is required...")

else if (document.FRM.Telephone_Number.value==0)
alert("Your Telephone Number is required...")

else if (document.FRM.Address.value==0)
alert("Your Address is required...")

else if (document.FRM.Educational_Qualification_1.value==0)
alert("Educational Qualification 1 is required...")

else if (document.FRM.Current_Employer.value==0)
alert("Your Current Employer is required...")

else if (document.FRM.Current_Job_Profile.value==0)
alert("Your Age is required...")

else if (document.FRM.Current_CTC.value==0)
alert("Your Age is required...")


else

document.FRM.submit()
}




//




function Gallery_FP()
{
window.open('gallery/default.asp','GWin','width=360,height=350,scrollbars=no,resizable=no,toolbar=no')
}


function Gallery_OP()
{
window.open('../gallery/default.asp','GWin','width=360,height=350,scrollbars=no,resizable=no,toolbar=no')
}