function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}
//var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
//document.write(unescape("%3Cscript src='" + gaJsHost + "maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAASH1Z49is6PAtXZYoIH_bexQiF1_FtbP-vUB_m-pKxg4s91OouBT6kVIZJs2asvXT_kiZBGlp41Kp-Q' type='text/javascript'%3E%3C/script%3E"));

function getXMLHTTP() { //fuction to return the xml http object
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				try{
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}
		 	
		return xmlhttp;
	}
loadstatustext = '<table border=0 align=center cellpadding=0 cellspacing=0><tr><td align=center><img src=/images/loading.gif border=0/></td></tr></table>';
function ajaxLoad(url,id)
{
if (document.getElementById) {
var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
}
if (x)
{
x.onreadystatechange = function()
{
el = document.getElementById(id);
el.innerHTML = loadstatustext;
if (x.readyState == 4 && x.status == 200)
{
el.innerHTML = x.responseText;
}
}
x.open("GET", url, true);
x.send(null);
}
}
function setPaymentInfo(isChecked)
{
	with (window.document.form1) {
		if (isChecked) {
			name2.value  = name.value;
			add2.value  = add.value;
			tel2.value  = tel.value;
			email2.value  = email.value;
						
			name2.readOnly  = true;
			add2.readOnly  = true;
			tel2.readOnly  = true;
			email2.readOnly  = true;
			
		} else {
			name2.readOnly  = false;
			add2.readOnly  = false;
			tel2.readOnly  = false;
			email2.readOnly  = false;
					
		}
	}
}
