﻿// JScript File
function itemDetailWin(w,h,itemid,showaddtocart) 
{
  args="width="+w+",height="+h+",resizable=no,scrollbars=no,status=0,menubar=no,location=no";
  remote=window.open("itemdetail.aspx?itemID="+itemid+"&showaddtocart="+showaddtocart+"&clickfromasp=0","abc",args);
  if (remote != null) 
  {
    if (remote.opener == null)
      remote.opener = self;
  }
}

function customProdWin(w,h,itemid,showaddtocart) 
{
  args="width="+w+",height="+h+",resizable=no,scrollbars=no,status=1,menubar=no,location=no";
  //remote=window.open("showitem.aspx?imageid="+itemid,"abc",args);
  remote=window.open("showcustom.aspx?imageid="+itemid,"abc",args);
  if (remote != null) 
  {
    if (remote.opener == null)
      remote.opener = self;
  }
}

function open_onclick(w,h) 
{
  args="width="+w+",height="+h+",resizable=no,scrollbars=no,status=0,menubar=no,location=no";
  remote=window.open("jobs.aspx","abc",args);
  if (remote != null) 
  {
    if (remote.opener == null)
      remote.opener = self;
  }
}

function refreshClose_onclick() {
window.opener.location.reload(1);self.close(); 
}

function close_onclick() 
{
    self.close(); 
}

function autoTab(element, nextElement) {
    if (element.value.length == element.maxLength && nextElement != null) {
        element.form.elements[nextElement].focus();
    }
}


