function open_wSelectWindow(ID, Height)	{
	wSelectWindow = window.open
	("/Popup.asp?ID=" + ID,"SelectWindow", "toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,width=500,height=" + Height + ",top=300,left=350"); }

function open_wCoupon(nLocationID) {
  var l = nLocationID == 0 ? "" : "?loc=" + nLocationID;
	wSelectWindow = window.open
	("coupon.asp"+l,"_blank","toolbar=1,menubar=1,location=0,directories=0,status=0,scrollbars=1,resizable=0,width=500,height=400,top=100,left=100"); }

function SwitchBox( id ) {
  var o  = document.getElementById(id);
  if( o != null )  o.style.display = (o.style.display == 'none' ? '' : 'none'); }

var AuxWinName = "";

function AuxWinPlace( wname ) {
  document.write('<DIV ID="'+ wname +'D" STYLE="position:absolute; z-index:100; width:100px; height:100px; top:-1000px; right:1000px;">');
  document.write('<IFRAME ID="'+ wname +'" NAME="JobMarks" SRC="" WIDTH="100%" HEIGHT="100%" SCROLLING=NO BORDER="0" FRAMEBORDER="0" HSPACE="0" VSPACE="0" MARGINWIDTH="0" MARGINHEIGHT="0" STYLE="border:#000000 1px solid;"></IFRAME></DIV>'); }

function AuxWin( link, width, height, wname ) { var w, d, t;
  AuxWinName = wname+'D';  d = document.getElementById(AuxWinName);
  d.style.width=width;  d.style.height=height;
  t = document.body.scrollTop;  if(isNaN(t)) t = window.scrollY;
  w = frames[wname];  w.document.clear();
  d.style.top = t;  d.style.right = 0;
  w.location = link; }

function AuxWinClose() { var d;
  if(AuxWinName.length==0) return;
  d = top.document.getElementById(AuxWinName);
  d.style.top=-1000; d.style.right=1000; }
