function load(file,target) {
    if (target != '')
        target.window.location.href = file;
    else
        window.location.href = file;
}

function confirmAndJump(text, ifYes, ifNo) {
  if (confirm(text)) {
    if (ifYes) location.href=ifYes;
  } else {
    if (ifNo) location.href=ifNo;
  }
} 

function newcheck()
	{
	

error="";
		if(document.forms['formsfrm'].elements['vopros'].value=='')
		{
			 alert("Ваш вопрос?");
			error="1"; 
			 return false;
			}
 
		
		if(document.forms['formsfrm'].elements['mail'].value=='')
		{
			 alert("Ваш E-mail?");
			 error="2"; 
			 return false;
			}
			

    if(error=="")
    {
			
		document.forms['formsfrm'].elements['vopros'].value	= document.forms['formsfrm'].elements['vopros'].value  +' Е-mail отправителя:'+ document.forms['formsfrm'].elements['mail'].value;
			return true;
			}
    	
	}



function doPopup(popupURL, popupName, width, height, noscrez) {
    
    var bName=navigator.appName;
    var bVer=parseInt(navigator.appVersion);
    var now = new Date();
    if (!popupName) popupName = "_general_popup";
    if (!width) width = 800;
    if (!height) height = 600;

    if (bName=="Netscape" && bVer<=3) {
      var popup = window.open("", popupName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height);
    } else {
      var popup = window.open("", popupName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+noscrez+',resizable=1,width='+width+',height='+height);
    }
    if (popupURL) popup.location.href = popupURL;
    popup.focus();
} 

 
