function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}


/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}


/*Cerficate popup JS*/

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=700,height=750,scrollbars=yes');
return false;
}


/*Company profile download validation JS*/

function valid()
{
 if(document.profile_download.name.value=="")
 { 
  alert('Please enter your name. ');
  document.profile_download.name.focus();
  return false;
 }
 else if(document.profile_download.email.value=="")
 { 
  alert('Please enter your email id. ');
  document.profile_download.email.focus();
  return false;
 }
 
 else if(document.profile_download.phone.value=="")
 { 
  alert('Please enter your phone number. ');
  document.profile_download.phone.focus();
  return false;
 }
 else
 {
 return true;
 }
}
