﻿
//function to popup a generic window.
//you need to pass the URL, width, and height
//..ex: <a href="javascript:popupGeneral('http://www.yahoo.com',600,200)">

function popupGeneral(theUrl,theWidth,theHeight) 
{
	var destination=theUrl;
	var r= Math.round(Math.random()*100);  //create new window name


	thatwindow = window.open(destination,"namehereew" + r ,"scrollbars=yes,menubar=no,top=0,left=0,width="+theWidth+",height="+theHeight+",resizable=yes");
	

}

function popupPrint(theUrl,theWidth,theHeight) 
{
	var destination=theUrl;
	var r= Math.round(Math.random()*100);  //create new window name


	thatwindow = window.open(destination,"namehereew" + r ,"scrollbars=yes,toolbar=no,menubar=yes,width="+theWidth+",height="+theHeight+",resizable=yes");

}
function popupPrintListing(sUrl) {
var biggraphic=sUrl;
var r= Math.round(Math.random()*100);  //create new window name
thatwindow = window.open(biggraphic,"namehere13"+r,"scrollbars=yes,menubar=yes,width=700,height=600,resizable=yes");

}

function popupGeneralMenu(theUrl,theWidth,theHeight) 
{

	var destination=theUrl;
	var r= Math.round(Math.random()*100);  //create new window name

	thatwindow = window.open(destination,"namehereew" + r ,"scrollbars=yes,menubar=yes,width="+theWidth+",height="+theHeight+",resizable=yes");

}
function openPopup(FrameUrl,theWidth,theHeight)
{
     return window.showModalDialog(FrameUrl,"", "resizable: yes; help: no; dialogHeight: "+theHeight+"px; dialogWidth: "+theWidth+"px; scroll: no; status: yes");
}

function openPopup1(theUrl,theWidth,theHeight) 
{
	var destination=theUrl;
	var r= Math.round(Math.random()*100);  //create new window name

	thatwindow = window.open(destination,"namehereew" + r ,"scrollbars=yes,menubar=yes,width="+theWidth+",height="+theHeight+",resizable=yes");
}

function cancelPopup() {

     parent.returnValue = false;
     parent.close();
}
function closePopup() {
     parent.returnValue = true;
     parent.close();
}
