
function initshadowbox()
{}
function redirect_template_from_home(pack_name)
{document.login_redirect.package_type.value=pack_name;document.login_redirect.step.value='step1';if(pack_name==1)
{document.login_redirect.action="order.php#order_page";}
if(pack_name==2)
{document.login_redirect.action="order_value_pack.php#order_page";}
if(pack_name==3)
{document.login_redirect.action="order_basic_pack.php#order_page";}
if(pack_name==4)
{document.login_redirect.action="order_virtual_pack.php#order_page";}
if(pack_name==5)
{document.login_redirect.action="order_classic_pack.php#order_page";}
if(pack_name==6)
{document.login_redirect.action="order_free_pack.php#order_page";}
document.login_redirect.submit();window.location="#order_page";}
popUpWin=0;function popUpWindow(URLStr,title,left,top,width,height,id,scrollbars)
{if(popUpWin)
{if(!popUpWin.closed)popUpWin.close();}
popUpWin=open(URLStr,title,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollBars='+scrollbars+',resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');}
function popopen(a)
{window.open("popup.htm?"+a,"","menubar=0,resizable=0,location=0,status=0,scrollbars=0");}
function popUpWindowMenubar(URLStr,title,left,top,width,height,id)
{if(popUpWin)
{if(!popUpWin.closed)popUpWin.close();}
popUpWin=open(URLStr,title,'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollBars=no,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');}
function popUpWindow_scroll(URLStr,title,left,top,width,height,id)
{if(popUpWin)
{if(!popUpWin.closed)popUpWin.close();}
popUpWin=open(URLStr,title,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollBars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');}
function popUpWindowAll(URLStr,title,left,top,width,height,id)
{if(popUpWin)
{if(!popUpWin.closed)popUpWin.close();}
popUpWin=open(URLStr,title,'toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollBars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');}
function cNum(e){var strCheck='0123456789\b\t  ';var whichCode=(window.Event)?e.which:e.keyCode;if(whichCode==0||whichCode==13)
{return true;}
key=String.fromCharCode(whichCode);if(strCheck.indexOf(key)==-1)return false;}
function cNumPhone(e){var strCheck='0123456789\b\t  +()[]-';var whichCode=(window.Event)?e.which:e.keyCode;if(whichCode==0||whichCode==13)
{return true;}
key=String.fromCharCode(whichCode);if(strCheck.indexOf(key)==-1)return false;}
function LTrim(str)
{var whitespace=new String(" \t\n\r");var s=new String(str);if(whitespace.indexOf(s.charAt(0))!=-1){var j=0,i=s.length;while(j<i&&whitespace.indexOf(s.charAt(j))!=-1)
j++;s=s.substring(j,i);}
return s;}
function RTrim(str)
{var whitespace=new String(" \t\n\r");var s=new String(str);if(whitespace.indexOf(s.charAt(s.length-1))!=-1){var i=s.length-1;while(i>=0&&whitespace.indexOf(s.charAt(i))!=-1)
i--;s=s.substring(0,i+1);}
return s;}
function isNumberKey(evt)
{var charCode=(evt.which)?evt.which:event.keyCode
if(charCode>31&&(charCode<48||charCode>57))
return false;return true;}
function trim(str)
{return RTrim(LTrim(str));}
function yconnect(url,frm,cnt)
{ny=new Yconnect(url,frm,cnt);ny.SimpleResponse();}



