function pass_error()
{
return true
}
document.onerror=pass_error

function create_win(arg_winname,arg_url,arg_width,arg_height,arg_left,arg_top)
{
window.open(arg_url,arg_winname,"width="+arg_width+",height="+arg_height+",left="+arg_left+",top="+arg_top+",menubar=no,status=no");
return false;
}

function ValidateOnline1Form()
{
	//if  (check_length (frmOnlineOrder.txtOrderAmount,'Lütfen Sipariş Miktarınızı Giriniz') == false) return false;
	//if  (Confirm_Msg ('Please confirm that it is OK to SUBMIT this form!') == false)   {frmSubmitted = false; return false;}
	//if  (disableSubmit()==false) return false;
	frmOnlineOrder.submit();
	return  true; 
}
function ValidateOnline2Form()
{
	//if  (check_length (frmOnlineOrder.txtOrderAmount,'Lütfen Sipariş Miktarınızı Giriniz') == false) return false;
	//if  (Confirm_Msg ('Please confirm that it is OK to SUBMIT this form!') == false)   {frmSubmitted = false; return false;}
	//if  (disableSubmit()==false) return false;
	frmOnlineOrder1.submit();
	return  true; 
}

function ShowProduct(pID,bool_take,str_lang) 
{
  var vPath;
  var vWinCal;
  strPath = 'http://www.simkasoftware.com/online_main.asp';
  strPath +=  '?pid=' + pID+'&take='+bool_take+'&change_language='+str_lang;   
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'ORDER', 'width=500,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}

function ShowBayiProduct(pID,pBayi,pcode) 
{
  var vPath;
  var vWinCal;
  strPath = 'online_main_bayi.asp';
  strPath +=  '?pid=' + pID ;   
  strPath +=  '&pbayiid=' + pBayi ;   
  strPath +=  '&pcode=' + pcode ;   
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'ORDER', 'width=500,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}

function OdeKasa(stotal,bool_is_branch,bool_shp,str_lang_1) 
{
  var vPath;
  var vWinCal;
  strPath = 'http://www.simkasoftware.com/online_main.asp';
  strPath +=  '?smode=kasa&total='+stotal+'&is_branch='+bool_is_branch+'&shp='+bool_shp+'&'+str_lang_1 ;   
  //strPath +=  '&pField1=' + pField1 ; 
   vWinCal = window.open(strPath, 'ORDER', 'width=500,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}

function ShowKayit(SID) 
{
  var vPath;
  var vWinCal;
  strPath = 'kayit_main.asp';
  strPath +=  '?sid=' + SID ;   
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'ORDER', 'width=500,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}

function ShowSonuc(SID) 
{
  var vPath;
  var vWinCal;
  strPath = 'kayit_oyun_sonuc.asp';
  strPath +=  '?sid=' + SID ;   
  vWinCal = window.open(strPath, 'ORDER', 'width=500,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
}

function ShowOyunKural() 
{
  var vPath;
  var vWinCal;
  strPath = 'oyunkurallari.asp';
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'OYUNKURAL', 'width=500,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}
function ShowOyunOynama() 
{
  var vPath;
  var vWinCal;
  strPath = 'oyunynama.asp';
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'OYUNOYNA', 'width=600,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}


function ShowOyunKayit(SID) 
{
  var vPath;
  var vWinCal;
  strPath = 'kayit_oyun.asp';
  strPath +=  '?sid=' + SID ;   
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'ORDER', 'width=300,height=400,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}

function ShowGuncellemeDownload(SID) 
{
  var vPath;
  var vWinCal;
  strPath = 'kayit_guncelleme.asp';
  strPath +=  '?fileno=' + SID ;   
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'GUNCELLE', 'width=300,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}

function GoDownload(SID) 
{
  var vPath;
  var vWinCal;
  strPath = 'godownload.asp';
  strPath +=  '?sid=' + SID ;   
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'ORDER', 'width=10,height=10,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=200');
  //vWinCal.opener = self;
  //vWinCal.focus();
}

function GoGuncelleDownload(fno) 
{
  var vPath;
  var vWinCal;
  strPath = 'download_file.asp';
  strPath +=  '?fileno=' + fno ;   
  //strPath +=  '&pField1=' + pField1 ; 
  vWinCal = window.open(strPath, 'ORDER', 'width=200,height=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=50,left=50');
  //vWinCal.opener = self;
  //vWinCal.focus();
}

function isValidEmail(str) {
   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
 
}

