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('');

}



function dispDate2()
{
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('<p class="date_text" align="right" style="margin-left: 4">' + lmonth + '&nbsp;');
document.write(date + ", " + year + "</left>");
}




function BookmarkTOYO()
{
var url="http://www.toyoindia.com/";
var title="TOYO ENGINEERING INDIA LTD."

window.external.addFavorite(url,title)
}



function CheckFields()
{
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.Company_Name.value == 0)
alert("Your Company Name is required...")

else if(document.FRM_Enquiry.Address.value == 0)
alert("Your Address is required...")

else if(document.FRM_Enquiry.Telephone_Number.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_FeedbackQHSE()
{
if(document.FRM_Feedback.Full_Name.value == 0)
alert("Your Full Name is required...")

else if(document.FRM_Feedback.Telephone_Number.value == 0)
alert("Your Telephone No. is required...")

else if(document.FRM_Feedback.EMail_Address.value == 0)
alert("Your E-Mail Address is required...")

else if(document.FRM_Feedback.Project_Name.value == 0)
alert("Project Name is required...")

else if(document.FRM_Feedback.Project_No.value == 0)
alert("Toyo India Project No. is required...")


else

document.FRM_Feedback.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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}





// JUMP FORM PAGE


function ViewProject(form){
var URL = document.FRM_Projects_Jump.Projects_Jump.options[document.FRM_Projects_Jump.Projects_Jump.selectedIndex].value;
parent.frames['top'].location.href = URL;
}



//



function CheckFields_Resume()
{
if(document.FRM_Resume.Post_Applied_For.value == "NULL")
alert("The Post you are Applying for cannot be blank...")

else if(document.FRM_Resume.Full_Name.value == 0)
alert("Your Full Name is required...")

else if(document.FRM_Resume.Age.value == 0)
alert("Your Age is required...")

else if(document.FRM_Resume.Telephone_Number.value == 0)
alert("Your Telephone No. is required...")

else if(document.FRM_Resume.Mobile_Number_Other_Contact_No.value == 0)
alert("Your Mobile / Other Contact No. is required...")

else if(document.FRM_Resume.Address.value == 0)
alert("Your Correspondence Address is required...")

//-------------SSC Validation

else if(document.FRM_Resume.SSC_University_Institute.value == 0)
alert("S.S.C. University / Institute Name is required...")

else if(document.FRM_Resume.SSC_Main_Subjects.value == 0)
alert("S.S.C. Main Subjects are required...")

else if(document.FRM_Resume.SSC_Class.value == 0)
alert("S.S.C. Class & % is required...")

else if(document.FRM_Resume.SSC_Year_of_Passing.value == 0)
alert("S.S.C. Year of Passing is required...")



//-------------HSC Validation

else if(document.FRM_Resume.HSC_University_Institute.value == 0)
alert("H.S.C. University / Institute Name is required...")

else if(document.FRM_Resume.HSC_Main_Subjects.value == 0)
alert("H.S.C. Main Subjects are required...")

else if(document.FRM_Resume.HSC_Class.value == 0)
alert("H.S.C. Class & % is required...")

else if(document.FRM_Resume.HSC_Year_of_Passing.value == 0)
alert("H.S.C. Year of Passing is required...")



//-------------Graduate Validation

else if(document.FRM_Resume.Graduate_University_Institute.value == 0)
alert("Graduate University / Institute Name is required...")

else if(document.FRM_Resume.Graduate_Main_Subjects.value == 0)
alert("Graduate Main Subjects are required...")

else if(document.FRM_Resume.Graduate_Class.value == 0)
alert("Graduate Class & % is required...")

else if(document.FRM_Resume.Graduate_Year_of_Passing.value == 0)
alert("Graduate Year of Passing is required...")


else if(document.FRM_Resume.Work_Experience.value == 0)
alert("Please Select an Appropriate Option for Work Experience...")


//-------------Work Experience Validation

else if(document.FRM_Resume.Company_Name_1.value == 0)
alert("Company Name is Required...")

else if(document.FRM_Resume.Company_Nature_Of_Business_1.value == 0)
alert("Nature of Business is Required...")

else if(document.FRM_Resume.Company_From_1.value == 0)
alert("Duration [From] is Required...")

else if(document.FRM_Resume.Company_To_1.value == 0)
alert("Duration [To] is Required...")

else if(document.FRM_Resume.Company_Designation_1.value == 0)
alert("Designation is Required...")

else if(document.FRM_Resume.Company_Brief_Responsibility_1.value == 0)
alert("Brief Responsibilites are Required...")

else if(document.FRM_Resume.In_Plant_Training.value == 0)
alert("In Plant Training Details is Required...")

else if(document.FRM_Resume.Academic_Project_Details_1.value == 0)
alert("At least 1 Academic Project Detail is Required...")

//--------------

else if(document.FRM_Resume.If_Selected_How_Soon_Can_Join.value == 0)
alert("You need tell us, If you are Selected how soon can you join?\n\nThis field cannot be blank...")

else if(document.FRM_Resume.Present_CTC.value == 0)
alert("Present CTC Per Annum is Required...")

else if(document.FRM_Resume.Expected_CTC.value == 0)
alert("Expected CTC Per Annum is Required...")


else

document.FRM_Resume.submit()
}



//


function InsertFresherValues()
{
document.FRM_Resume.Work_Experience.value="Fresher"

document.FRM_Resume.Company_Name_1.value="--"
document.FRM_Resume.Company_Name_1.disabled="true"

document.FRM_Resume.Company_Nature_Of_Business_1.value="--"
document.FRM_Resume.Company_Nature_Of_Business_1.disabled="true"

document.FRM_Resume.Company_From_1.value="--"
document.FRM_Resume.Company_From_1.disabled="true"

document.FRM_Resume.Company_To_1.value="--"
document.FRM_Resume.Company_To_1.disabled="true"

document.FRM_Resume.Company_To_1.value="--"
document.FRM_Resume.Company_To_1.disabled="true"

document.FRM_Resume.Company_Designation_1.value="--"
document.FRM_Resume.Company_Designation_1.disabled="true"


document.FRM_Resume.Company_Brief_Responsibility_1.value="--"
document.FRM_Resume.Company_Brief_Responsibility_1.disabled="true"
}



//


//


function ReverseFresherValues()
{
document.FRM_Resume.Work_Experience.value="Non Fresher"

document.FRM_Resume.Company_Name_1.value=""
document.FRM_Resume.Company_Name_1.disabled="false"

document.FRM_Resume.Company_Nature_Of_Business_1.value=""
document.FRM_Resume.Company_Nature_Of_Business_1.disabled="false"

document.FRM_Resume.Company_From_1.value=""
document.FRM_Resume.Company_From_1.disabled="false"

document.FRM_Resume.Company_To_1.value=""
document.FRM_Resume.Company_To_1.disabled="false"

document.FRM_Resume.Company_To_1.value=""
document.FRM_Resume.Company_To_1.disabled="false"

document.FRM_Resume.Company_Designation_1.value=""
document.FRM_Resume.Company_Designation_1.disabled="false"


document.FRM_Resume.Company_Brief_Responsibility_1.value=""
document.FRM_Resume.Company_Brief_Responsibility_1.disabled="false"
}



//


function CheckFields_Add_User()
{
if(document.FRM_Add_User.UV_Name.value == 0)
alert("User / Vendor Name is required...")

else if(document.FRM_Add_User.UV_Company_Name.value == 0)
alert("Company Name is required...")

else if(document.FRM_Add_User.UV_Address_1.value == 0)
alert("Address Line 1 is required...")

else if(document.FRM_Add_User.UV_Telephone_Number.value == 0)
alert("Telephone Number is required...")

else if(document.FRM_Add_User.UV_EMail_Address.value == 0)
alert("E-Mail Address is required...")

else if(document.FRM_Add_User.UV_LoginID.value == 0)
alert("Login ID cannot be blank...")

else if(document.FRM_Add_User.UV_Password.value == 0)
alert("Password cannot be blank...")


else

document.FRM_Add_User.submit()
}



//


function CheckFields_Login()
{
if (document.FRM_Login.UV_LoginID.value==0 || document.FRM_Login.UV_Password.value==0)
alert("None of the Field are allowed Blank entries...")

else

document.FRM_Login.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 CheckFields_Forgot_Password()
{
if (document.FRM_Forgot_Password.UV_EMail_Address.value==0 || document.FRM_Forgot_Password.UV_LoginID.value==0)
alert("None of the Field are allowed Blank entries...")

else

document.FRM_Forgot_Password.submit()
}


//



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 SubmitArchiveForm()
{
var URL = document.FRM_Archive.News_Year.options[document.FRM_Archive.News_Year.selectedIndex].value;
parent.frames['top'].location.href = URL;
}


//
































// 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 = 50;

// ----- 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+2 : 0;
  var left1 = (c["at_position"] == "x") ?  p.offsetWidth +2 : -22;
  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 GlobalToyo()
{
window.location="/global_toyo/global_toyo_system.asp"
}






//


function doSearch_Site_Action()
{
document.FRM_Search.action = "/search/search.asp";

document.FRM_Search.submit()
}


function Search_Site()
{
if(document.FRM_Search.term.value == 0)
alert("Search String is required...")

else if(document.FRM_Search.term.value == 0)
alert("Search String is required...")

else

doSearch_Site_Action()
}



//


function doSearch_Projects_Action()
{
document.FRM_Search.action = "/search/search_projects.asp";

document.FRM_Search.submit()
}


function Search_Projects()
{
if(document.FRM_Search.term.value == 0)
alert("Search String is required...")

else if(document.FRM_Search.term.value == 0)
alert("Search String is required...")

else

doSearch_Projects_Action()
}


//


function doSearch_News_Events_Action()
{
document.FRM_Search.action = "/search/search_news_events.asp";

document.FRM_Search.submit()
}


function Search_News_Events()
{
if(document.FRM_Search.term.value == 0)
alert("Search String is required...")

else if(document.FRM_Search.term.value == 0)
alert("Search String is required...")

else

doSearch_News_Events_Action()
}



//

function doSearch_Function(form)

{
var URL = document.FRM_Search.Search_In.options[document.FRM_Search.Search_In.selectedIndex].value;
window.location.href = URL;
}









var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=32 //(must be divisible by 8)
var direction="up"

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-250+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",25)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


//window.onload=initbox






function CWin()
{
window.open('hrd_address.asp?vfrom=Careers','InfoWin','scrollbars=no,resizable=no,width=550,height=450')
}