function PopUp (url) {
	var cToolBar = "dependent=1,toolbar=0,location=0,directories=0,status=0	,menubar=0,scrollbars=0,resizable=1,width=800,height=600";
	var popupwin = window.open(url, 'Popup', cToolBar);
}

function Preview (url) {
	var cToolBar = "dependent=1,toolbar=0,location=0,directories=0,status=0	,menubar=0,scrollbars=1,resizable=1,width=1024,height=768";
	var popupwin = window.open(url, 'Popup', cToolBar);
}

function servReq(mod,id,islist) { 
	url = '/services/index.cfm?m='+mod+','+id;
	var xmlhttp = null; 
	// Mozilla 
	if (window.XMLHttpRequest) { 
		xmlhttp = new XMLHttpRequest(); 
	} 
	// IE 
	else if (window.ActiveXObject) { 
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
	} 
	
	xmlhttp.open("GET", url, true); 
	var divid = 'isfav';
	if (islist == 1) {
		divid = divid + id;
	}
	xmlhttp.onreadystatechange = function() { 
		if(xmlhttp.readyState != 4) { 
			document.getElementById(divid).innerHTML = ''; 
		} 
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200) { 
			document.getElementById(divid).innerHTML = xmlhttp.responseText; 
			if (islist == 1) {
				document.getElementById('content'+id).style.display = 'none'; 
			}
		} 
	} 
	xmlhttp.send(null); 
}
