//Compressed with http://www.creativyst.com/Prod/3/
var smode=""; var is = new Is(); function Is() { var agent = navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); this.ns = ((agent.indexOf('mozilla') != -1) &&
(agent.indexOf('spoofer') == -1) &&
(agent.indexOf('compatible') == -1) &&
(agent.indexOf('opera') == -1) &&
(agent.indexOf('webtv') == -1)); this.ns4 = (this.ns && (this.major == 4)); this.ns6 = (this.ns && (this.major >= 5)); this.ie = (agent.indexOf("msie") != -1); this.ie3 = (this.ie && (this.major < 4)); this.ie4 = (this.ie && (this.major >= 4)); this.ie5 = (this.ie && (this.major == 4) &&
(agent.indexOf("msie 5.0") != -1)); this.ieX = (this.ie && !this.ie3 && !this.ie4);}
function checkForm(frm,stype) { if (smode=="1") { if (frm.affiliate_email.value =='') { alert("Please Enter Your E-mail Address"); frm.affiliate_email.focus(); return false;}
if (frm.affiliate_pwd.value =='') { alert("Please Enter Your Affiliate Password"); frm.affiliate_pwd.focus(); return false;}
}
if (smode=="2") { if (frm.txtSearchProduct.value =='') { alert("Please Enter A Search Term"); frm.txtSearchProduct.focus(); return false;}
}
return true;}
function formaction(stype, sDest) { if (stype=="1") { document.homepagefrm.method = "POST"; document.homepagefrm.action = sDest;}
if (stype=="2") { document.homepagefrm.method = "GET"; document.homepagefrm.action = sDest;}
if (stype=="3") { document.homepagefrm.method = "GET"; document.homepagefrm.action = sDest;}
if (stype=="4") { document.homepagefrm.method = "POST"; document.homepagefrm.action = sDest;}
document.homepagefrm.actiontype.value=stype; return true;}
function dorefresh() { var CookiesOff; CookiesOff = CheckForCookiesOn(); window.document.cookie = "RefreshProgressID=FALSE"; if (CookiesOff == true){ NewID = -1;}
}
function TryNow() { sFilepath = document.UploadForm.File2.value; if (sFilepath != "") { sFilepath = sFilepath.toLowerCase()
if (sFilepath.indexOf(".gif")==-1 && sFilepath.indexOf(".png")==-1 && sFilepath.indexOf(".jpg")==-1 && sFilepath.indexOf(".jpeg")==-1) { alert("The picture you selected is not a supported image format, please select an image file ending in one of the following formats [.gif, .jpg, or .png]"); return false;} else { window.open('Try_it_now.htm','ds5features','width=350,height=350,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')
upload(); return true;}
} else { alert("Please click the [BROWSE] button to select an image on your computer before proceeding."); return false;}
}
function upload() { if (NewID != -1){ window.document.cookie = "RefreshProgressID=TRUE"; Param = "SCROLLBARS=no,RESIZABLE=no, TOOLBAR=no,STATUS=no,MENUBAR=no,WIDTH=400,HEIGHT=100"; Param += ",TOP=" + String(window.screen.Height/2 - 50); Param += ",LEFT=" + String(window.screen.Width/2 - 200);}
document.UploadForm.action = "cgi-bin/DS5_UploadReceiver_tryitnow.asp?ProgressID=<=NewProgressID>&size=LARGE"
}

