function popUp(url,width,height)
{
	popUp = window.open(url,'popUpWindow','width=' + width + ',height=' + height + ',toolbar=no,location=no,scrollbars=yes');
}




function loadParentURL(url)
{
	self.opener.location = url;
}




function photoWindow(Pic){

	newWin = window.open('viewPhoto.asp?' + Pic,'photoWindow','width=200,height=200,toolbar=no,location=no,scrollbars=yes')

}




function sendCallback()
{

	var name,number,resp

	name = document.callback.elements["name"].value;
	number = document.callback.elements["number"].value;

	if(name == "undefined" || number == "undefined")
	{
		document.getElementById("callbackresponse").innerHTML = "<div class=err>Please enter your name and number</div>";
	}else
	{
		resp = DoCallback("processCallback.asp?name=" + name + "&number=" + number);

		document.getElementById("callbackresponse").innerHTML = resp.responseText;
	}
}




function DoCallback(url){
   // url:    URL to invoke
   // params: string object to pass to the remote URL

   // Add some parameters to the query string
   var pageUrl = url

   // Initialize the XmlHttp object
    try {
        //Mozilla Browsers
        xmlRequest = new XMLHttpRequest();
    } 
    catch (e) {
        try {
            //IE
            xmlRequest = new ActiveXObject("Microsoft.ServerXMLHTTP");
        } 
        catch (e) {
            //Something else that won't work with this code...
            xmlRequest=false;
        }
    } 
    // Post our XmlRequest and get our desired string
    xmlRequest.open("GET", pageUrl, false);
    xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlRequest.send(null);

    // Return the XmlHttp object
    return xmlRequest;

    xmlRequest = null ;

}



