<!--
<!--
			//browser detection
			var strUserAgent = navigator.userAgent.toLowerCase(); 
			var isIE = strUserAgent.indexOf("msie") > -1; 
			var isNS6 = strUserAgent.indexOf("netscape6") > -1; 
			var isNS4 = !isIE && !isNS6  && parseFloat(navigator.appVersion) < 5; 
//--------------------------------------------------------------------	
function wincompare(value)
{
ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=825,height=600,top=0,left=0'");
if (value >0)
{
if (value==1){ window.open("http://www.nod32.cc/compare/other/symantec.aspx","",ops);}
if (value==2){ window.open("http://www.nod32.cc/compare/other/mcafee.aspx","",ops);}
if (value==3){ window.open("http://www.nod32.cc/compare/other/trend.aspx","",ops);}
if (value==4){ window.open("http://www.nod32.cc/compare/other/bitdefnder.aspx","",ops);}
if (value==5){ window.open("http://www.nod32.cc/compare/other/sophos.aspx","",ops);}
if (value==6){ window.open("http://www.nod32.cc/compare/other/kaspersky.aspx","",ops);}
if (value==7){ window.open("http://www.nod32.cc/compare/other/panda.aspx","",ops);}
if (value==8){ window.open("http://www.nod32.cc/compare/other/avg.aspx","",ops);}
if (value==9){ window.open("http://www.nod32.cc/compare/other/cavet.aspx","",ops);}
if (value==10) { window.open("http://www.nod32.cc/compare/other/onecare.aspx","",ops);}
}
}
//--------------------------------------------------------------------
function winnews(value)
{
ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=723,height=500,top=0,left=0'");
window.open(value,"",ops);}
//--------------------------------------------------------------------	
function winmume(value)
{
ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=723,height=625,top=0,left=0'");
window.open(value,"",ops);}
//--------------------------------------------------------------------	
function winfaq(value)
{
ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=623,height=600,top=0,left=0'");
window.open(value,"",ops);}
//--------------------------------------------------------------------	
function winpartner(value)
{
ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=605,height=355,top=0,left=0'");
window.open(value,"",ops);}
//--------------------------------------------------------------------	

function winopen(strURL)
{
window.open(strURL,"",'');
}
//--------------------------------------------------------------------	
function showPage(strURL)
{
window.open(strURL,"",'');
}
//--------------------------------------------------------------------	
function winfair(value)
{
ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=705,height=700,top=0,left=0'");
window.open(value,"",ops);}

function winTel(value)
{
ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=405,height=170,top=0,left=0'");
window.open(value,"",ops);}


//--------------------------------------------------------------------	
function winAdver(value)
{
ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=447,height=333,top=0,left=0'");
window.open(value,"",ops);}

//--------------------------------------------------------------------	

function NumericKeyPress( obj, event ) { 
    var curChar    = String.fromCharCode( event.keyCode ); 
    var inpStr     = obj.value + curChar 
    window.status  = '';
    obj.title      = '';

    result = inpStr.match( '^[0-9]+$' );
    if ( ! result ) {
        alert("مقدار را بصورت عدد صحیح وارد نمایید")       
        event.returnValue = false;
        event.cancel      = true; 
    }         
}         


//--------------------------------------------------------------------	
function StringKeyPress( obj, event ) { 
    var curChar    = String.fromCharCode( event.keyCode ); 
    var inpStr     = obj.value + curChar 
    window.status  = '';
    obj.title      = '';

    result = inpStr.match( '^[A-Za-z,., ]+$' );
    if ( ! result ) {
        alert("مقدار را بصورت حروف انگلیسی وارد نمایید")
        event.returnValue = false;
        event.cancel      = true; 
    }         
}        

//--------------------------------------------------------------------	
function EmailKeyPress( obj, event ) { 
    var curChar    = String.fromCharCode( event.keyCode ); 
    var inpStr     = obj.value + curChar 
    window.status  = '';
    obj.title      = '';
     
  if (inpStr.length>3)
   {
    if ( inpStr.substring(0,4)=="www.")
     {
        alert(".در ابتدای پست الکترونیکی صحیح نمی باشد'www'درج")
        event.returnValue = false;
        event.cancel      = true; 
    }
   }         
}  

//--------------------------------------------------------------------	

            function UpperCase_FirstCharString(obj) 
			{
			var strVal;
			
			strVal=obj.value;
			strVal=strVal.substring(0,1).toUpperCase()+strVal.substring(1,strVal.length);
			obj.value=strVal;
			return true
			}
			
			
//--------------------------------------------------------------------			
function Mask_Farsi(obj, event) 
			{
			
var curChar    = String.fromCharCode( event.keyCode ); 
    var inpStr     = obj.value + curChar 
    window.status  = '';
    obj.title      = '';

    result = inpStr.match( '^[الف-ی,. ]+$' );
    if ( ! result ) {
        alert("مقدار را بصورت حروف فارسی وارد نمایید")       
        event.returnValue = false;
        event.cancel      = true; 
    }         
}         

//--------------------------------------------------------------------
function showImage(imgname, x, y,scl)
{
  if (isIE) {x+=20; y+=23};
  var name="../images/"+imgname;
  ops = eval("'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+ scl +",resizable=yes,copyhistory=yes,width=" + x + ",height=" + y + "'");
  window.open(name, 'New1', ops);
  return;
}
			
