function Festive_Jump()
{
self.location = "fp_banner_2.asp"
}

function Intro_Jump()
{
self.location = "fp_banner_2.asp"
}

//when there is no special banners just redirect it to the same files.






function BookmarkKhojati()
{
var url="http://www.khojati.com/";
var title="Khojati"

window.external.addFavorite(url,title)
}

function KWin_POP()
{
window.open("directions.htm","KWin","scrollbars=yes,width=750,height=350")


}



	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 style="font-family: Verdana; font-size: 7pt; color: #000000" 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 Clear_Search_Box()
{
document.FRM_Search.term.value=''
}




//



function doSearch()
{
if (document.FRM_Search.term.value==0)
alert("Enter a Search Term or Phrase to begin Searching...")

else

document.FRM_Search.submit()
}




//

// Copyright (C) 2005 Ilya S. Lyubinskiy. All rights reserved.
// Technical support: http://www.php-development.ru/
//
// YOU MAY NOT
// (1) Remove or modify this copyright notice.
// (2) Distribute this code, any part or any modified version of it.
//     Instead, you can link to the homepage of this code:
//     http://www.php-development.ru/javascripts/menu.php.
//
// YOU MAY
// (1) Use this code on your website.
// (2) Use this code as a part of another product provided that
//     its main use is not creating javascript menus.
//
// NO WARRANTY
// This code is provided "as is" without warranty of any kind, either
// expressed or implied, including, but not limited to, the implied warranties
// of merchantability and fitness for a particular purpose. You expressly
// acknowledge and agree that use of this code is at your own risk.


function at_display(x)
{
  var win = window.open();
  for (var i in x) win.document.write(i+' = '+x[i]+'<br>');
}

// ----- DropDown Control ------------------------------------------------------

var at_timeout = 200;

// ----- Show Aux -----

function at_show_aux(parent, child)
{
  var p = document.getElementById(parent);
  var c = document.getElementById(child);

  p.className        = "active";

  if (c.offsetWidth <= 0)
  {
    c.style.position   = "absolute";
    c.style.visibility = "visible";
    c.style.display    = "block";
  }

  var direction = undefined;
  if (p.parentNode && p.parentNode["at_position"] == "x")
    direction = p.parentNode["at_direction"];

  var top   = (c["at_position"] == "y") ?  p.offsetHeight-10 : 0;
  var left1 = (c["at_position"] == "x") ?  p.offsetWidth +2 : 0;  //+5 for width from left right
  var left2 = (c["at_position"] == "x") ? -c.offsetWidth -2 : 0;
  var left3 = (c["at_position"] == "x") ?  p.offsetWidth +2 : 0;

  for (; p; p = p.offsetParent)
  {
    if (p.style.position != 'absolute')
    {
      left1 += p.offsetLeft;
      left2 += p.offsetLeft;
      top   += p.offsetTop;
    }
    left3 += p.offsetLeft;
  }

  if (direction)
  {
    left = (direction == 'right') ? left1 : left2;
    c['at_direction'] = direction;
  }
  else
  {
    left = (left3+c.offsetWidth < document.body.offsetWidth) ? left1 : left2;
    c['at_direction'] = (left3+c.offsetWidth < document.body.offsetWidth) ? 'right' : 'left';
  }

  c.style.position   = "absolute";
  c.style.visibility = "visible";
  c.style.display    = "block";
  c.style.top        = top +'px';
  c.style.left       = left+'px';
}

// ----- Hide Aux -----

function at_hide_aux(parent, child)
{
  document.getElementById(parent).className        = "parent";
  document.getElementById(child ).style.visibility = "hidden";
  document.getElementById(child ).style.display    = "block";
}

// ----- Show -----

function at_show(e)
{
  var p = document.getElementById(this["at_parent"]);
  var c = document.getElementById(this["at_child" ]);

  at_show_aux(p.id, c.id);

  clearTimeout(c["at_timeout"]);
}

// ----- Hide -----

function at_hide()
{
  var c = document.getElementById(this["at_child"]);

  c["at_timeout"] = setTimeout("at_hide_aux('"+this["at_parent"]+"', '"+this["at_child" ]+"')", at_timeout);
}

// ----- Attach -----

function at_attach(parent, child, position)
{
  p = document.getElementById(parent);
  c = document.getElementById(child );

  p["at_child"]    = c.id;
  c["at_child"]    = c.id;
  p["at_parent"]   = p.id;
  c["at_parent"]   = p.id;
  c["at_position"] = position;

  p.onmouseover = at_show;
  p.onmouseout  = at_hide;
  c.onmouseover = at_show;
  c.onmouseout  = at_hide;
}

// ----- DropDown Menu ---------------------------------------------------------

// ----- Build Aux -----

function dhtmlmenu_build_aux(parent, child, position)
{
  document.getElementById(parent).className = "parent";

  document.write('<div class="vert_menu" id="'+parent+'_child">');

  var n = 0;
  for (var i in child)
  {
    if (i == '-')
    {
      document.getElementById(parent).href = child[i];
      continue;
    }

    if (typeof child[i] == "object")
    {
      document.write('<a class="parent" id="'+parent+'_'+n+'">'+i+'</a>');
      dhtmlmenu_build_aux(parent+'_'+n, child[i], "x");
    }
    else document.write('<a id="'+parent+'_'+n+'" href="'+child[i]+'">'+i+'</a>');
    n++;
  }

  document.write('</div>');

  at_attach(parent, parent+"_child", position);
}

// ----- Build -----

function dhtmlmenu_build(menu)
{
  for (var i in menu) dhtmlmenu_build_aux(i, menu[i], "y");
}














//



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()
{
}







//






//



function CheckFields()
{
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.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

document.FRM_Enquiry.submit()
}


//



function CheckFields_Experts()
{
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.Telephone_No.value == 0)
alert("Your Telephone No. is required...")

else if(document.FRM_Enquiry.Question_Regarding.value == 0)
alert("Please Specify what is your Question Regarding...")

else if(document.FRM_Enquiry.Questions_Queries.value == 0)
alert("Your Questions or Queries are required...")


else

document.FRM_Enquiry.submit()
}
