﻿function imgShow_onclick(ParNone) {
	document.getElementById("tblFilm").style.display=ParNone;
}
function setfocus()
	{
		if(window.event.keyCode==13)
			document.getElementById("btnSend").focus();
	}
		
function search(word)
	{	
		window.location.href="subs.aspx?keyw=" + word.value;			
	}
function addInputSubmitEvent(form, input) {
    input.onkeydown = function(e) {
        e = e || window.event;
        if (e.keyCode == 13) {
            form.submit();
            return false;
        }
    };
}
window.onload = function() {
    var forms = document.getElementsByTagName('form');
    for (var i=0;i < forms.length;i++) {
        var inputs = forms[i].getElementsByTagName('input');
        for (var j=0;j < inputs.length;j++)
            addInputSubmitEvent(forms[i], inputs[j]);
    }
};
function add_ad()
{
	window.open("adv.aspx","testwindow","width=550 height=550");
}
function resize(img,picwidth,picheight,ad_id,num)
{	
	window.open("coupon.aspx?pic="+ ad_id + num,"width=picwidth height=picheight");
}
function back(url)
{
	window.location.href = url;
}
function sort()
{
	window.open("sortwin.aspx","sortwin","width=300 height=210");
}
function sendToAdTop(myad_Id)
{
	window.open("http://www.sms2top.ybay.co.il/show.aspx?"+myad_Id,"send_mail","width=340 height=250");
}	
	  
function showPhoneT(objLink ,adId){
		var url = 'phone.aspx?qp='+ adId;                               
		 var strText1 = objLink.id;
		 if (objLink.getAttribute("clicked")==0) {
		 	 objLink.innerHTML="עוד רגע...";
			 var strParams = "t1="+strText1 ;
			 var loader1=new net.ContentLoader(url,CreateScript,null,"POST",strParams);
			}
	  }
	  
function CreateScript(){
		strText1 = this.req.responseText;
		eval(this.req.responseText);
	  }