// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header

// Set the message for the alert box
am = "This function has been disabled by Genesis!";

// do not edit below this line
// ===========================
bV  = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
   if (bNS && e.which > 1){
      alert(am)
      return false
   } else if (bIE && (event.button >1)) {
     alert(am)
     return false;
   }
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;





function Bookmark()
{
var url="http://www.candlemakingmoulds.com/";
var title="Welcome to Genesis"

window.external.addFavorite(url,title)
}

//


function SetHome()
{
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage('http://www.bengalmumbaifc.com/default_home.asp');


}

//


function Tell()
{
window.open('/tell/tell.asp?vfrom=home','TWin','width=375,height=320,scrollbars=no,resizable=no,status=no')
}

function Support()
{
window.open('/support/default.asp?vfrom=home','TWin','width=375,height=450,scrollbars=no,resizable=no,status=no')
}


//


function directions()
{
window.open('../contact/directions.asp?vfrom=home','TWin','width=900,height=650,scrollbars=yes,resizable=yes,status=no')
}






	function displayCSS(mouseOn)
    {
      var dropdown, visible, hidden;
	  var book = "<option value='mail_khojatiint.asp'>khojatiint@vsnl.in</option><option value='mail_info.asp'>info@khojati.com</option>";
	
	  if((is_nav4up || is_ie4up) && (book.search('@') != -1))
	  {
        if (document.layers)
	    {
	      visible = 'show';
		  hidden = 'hide';
		  dropdown = document.layers[CSSObject];
	    }
	    else if (document.all)
	    {
          visible = 'visible';
		  hidden = 'hidden';
		  dropdown = document.all(CSSObject).style;
	    }
	  
	    if(mouseOn == 1)
	    {
		  dropdown.visibility = visible;
	    }
	    if(mouseOn == 0 && CSSstatus=="1")
	    {
		  dropdown.visibility = visible;
	    }
	    if(mouseOn == 0 && CSSstatus=="0")
	    {
		  dropdown.visibility = hidden;
	    }
      }
    }







//



// 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 doSearch()
{
if (document.FRM_Search.term.value==0)
alert("Enter a Search Term or Phrase to begin Searching...")

else

document.FRM_Search.submit()
}


//


function ClearValues()
{
document.FRM_Search.term.value=''
}




















//



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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//


//



function SetImages()
{
if(pgn=="home")
MM_swapImage('home','','nav/menus/home_ov.gif',1)

else if(pgn=="about")
MM_swapImage('about','','../nav/menus/about_ov.gif',1)

else if(pgn=="products")
MM_swapImage('products','','../nav/menus/products_ov.gif',1)

else if(pgn=="group_companies")
MM_swapImage('group_companies','','../nav/menus/group_companies_ov.gif',1)

else if(pgn=="contact")
MM_swapImage('contact','','../nav/menus/contact_ov.gif',1)

else if(pgn=="Enquiry")
MM_swapImage('Enquiry','','../nav/menus/eenquiy_ov.gif',1)
}







//






//



function CheckFields_Enquiry()
{
if(document.FRM_Enquiry.Full_Name.value == 0)
alert("Your Full Name is required...")

else if(document.FRM_Enquiry.Address.value == 0)
alert("Your Address is required...")

else if(document.FRM_Enquiry.EMail_Address.value == 0)
alert("Your E-Mail Address is required...")

else if(document.FRM_Enquiry.Questions_Queries.value == 0)
alert("Your Questions or Queries are required...")

else

document.FRM_Enquiry.submit()
}


//


function CheckFields_Tell()
{
if(document.FRM.Friends_Name.value == 0)
alert("Your Friends Name is required...")

else if(document.FRM.Friends_EMail.value == 0)
alert("Your Friends E-Mail is required...")

else if(document.FRM.Your_Name.value == 0)
alert("Your Name is required...")

else if(document.FRM.Your_EMail.value == 0)
alert("Your E-Mail is required...")

else

document.FRM.submit()
}

//



function CheckFields_Contact()
{
if(document.FRM_Enquiry.Feedback_Type.value == "NULL")
alert("Please Select an Appropriate Feedback Type...")

else 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.City_Name.value == 0)
alert("City Name is required...")

else if(document.FRM_Enquiry.State_Name.value == "NULL")
alert("Please Select an Appropriate State Name...")

else if(document.FRM_Enquiry.Message.value == 0)
alert("Your Message is required...")


else

document.FRM_Enquiry.submit()
}



//


function Set_Update_Rate()
{
var rate=document.FRM.Refresh_Rate.options[document.FRM.Refresh_Rate.selectedIndex].value;
document.getElementById('Set_Rate').innerHTML=rate+' Seconds'
}




function CheckFields_Support()
{
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.Message.value == 0)
alert("Support Question / Message is required...")


else

document.FRM_Enquiry.submit()
}





function CheckFields_Login()
{
if (document.FRM.LoginID.value==0 || document.FRM.Password.value==0)
alert("None of the Field are allowed Blank entries...")

else

document.FRM.submit()
}

