function getSerial (url,id,local) {

	if (!Browser.Engine.gecko) {
	window.open("http://www.unlimitedserials.com/noff.php?id="+id+"&url="+url+"")
	} else {
	serialBox = document.createElement("div")
	
		if (local) {
		serialBox.innerHTML = "<div id=\"innerFramed\"><div id=\"closeWindow\" onclick=\"closeWindow()\">Close <span id=\"theX\">X</span></div><iframe src=\""+url+"\" style=\"width:100%; height:400px;\"></iframe><div><b>Note:</b> you may need to scroll down to view your serial or even type a captcha code!</div></div>"
		} else {
		serialBox.innerHTML = "<div id=\"innerFramed\"><div id=\"closeWindow\" onclick=\"closeWindow()\">Close <span id=\"theX\">X</span></div><iframe src=\""+url+"\" style=\"width:100%; height:400px;\"></iframe><div id=\"rateSerial\"><img src=\"img/serialWorks.gif\" border=\"0\" onclick=\"rate("+id+",'yes')\" /><img src=\"img/serialInvalid.gif\" border=\"0\" onclick=\"rate("+id+",'no')\" /><br /><b>Note:</b> you may need to scroll down to view your serial or even type a captcha code!</div></div>"
		}
		
	serialBox.id = "framed"
	document.body.appendChild(serialBox)
	}
	
}

function closeWindow () {
document.body.removeChild(serialBox)
}

function rate (id,op) {
x = op
y = id
	if (id != 0) {
	req = new Request ({
	method:'get',
	url:'http://www.unlimitedserials.com/rate.php',
	data: { op:x, id:y } 
	}).send()
	closeWindow()
	}
	
}