﻿function DoSearch()
{var txtS=document.getElementById('txtSearch');window.location="../search.aspx?q="+txtS.value;}
function DoSearchEvent(e)
{if(e.keyCode=="13")
{DoSearch();return false;}
return true;}
function checkMaxLength(e,el){switch(e.keyCode){case 37:return true;case 38:return true;case 39:return true;case 40:return true;case 8:return true;case 46:return true;case 27:el.value='';return true;}
return(el.value.length<el.getAttribute("TAMaxLength"));}
function checkMaxLength2(e,el){if(el.value.length>el.getAttribute("TAMaxLength"))
    { var x = el.getAttribute("TAMaxLength"); alert("Value was too Long, trimming to: " + x); el.value = el.value.substring(0, x); }
}
function OpenProof(x)
{ i = document.createElement('a'); i.setAttribute('rel', 'lyteframe'); i.setAttribute('href', x); i.setAttribute('rev', 'width: 660px; height: 330px; scrolling: yes'); i.setAttribute('title', 'Design Proof'); myLytebox.start(i, false, true); return false; }
 
function GetMaterials(x)
{ i = document.createElement('a'); i.setAttribute('rel', 'lyteframe'); i.setAttribute('href', "/popup.aspx"); i.setAttribute('rev', 'width: 790px; height: 500px; scrolling: yes'); i.setAttribute('title', 'Signazon.com Materials'); myLytebox.start(i, false, true); return false; }
    