// AI Util Func

function buttonSearch(){
/*
 var kw = document.getElementById('searchtext');
    var frms = document.forms['form_search'];
    if(kw && kw.value != ''){
        if(frms)
            frms.submit();
    }
*/

	var kw = document.getElementById('searchtext');
	var frms = document.forms['0'];
	if(kw && kw.value != ''){
		 if(frms){
		     frms.action = "searchpush.aspx";
			 frms.submit();	
		}
	 	//else{
			//frms = document.forms[0];
			//if(frms){
 				//frms.action='/push_searchtext.aspx';
				//alert(frms.action);
			//	frms.submit();
			// }
			 //window.location.href="/searchpush.aspx?keyword="+kw.value;
			 //var frm = document.forms[0];
			//if(frm && frm.action != "searchpush.aspx"){
                //frm.onsubmit=function(){return false;}
            //}
		 //}
	}
}

function buttonSearch2(){
    var kw = document.getElementById('searchtext');
    var frms = document.forms[0];
    if(kw && kw.value != ''){
         if(frms){     
            frms.action='/Forum_Search.aspx';
            frms.method='post';
            frms.submit();
	 }
     }
}

function checkRez(){
	//alert(screen.width+' '+screen.height);
if ((screen.width>1023) && (screen.height>763))
			{
			 //alert(screen.width+' '+screen.height)
			}
			else
			{
				
			  alert("For the best experience on this site please use Internet Explorer, Firefox 2 or Safari 3 with screen resolution 1024 X 768")
			}
}


