// JavaScript Document
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=no,scrollbars=yes,location=0,statusbar=no,menubar=no,resizable=no,width=380,height=200');");
}
function minzoom(picname,minister)
{ 
	OpenWindow=window.open("", "newwin", "width=700,height=500,toolbar=no,scrollbars=no,top=10,resizable=no,menubar=no");
	OpenWindow.document.write("<title> " + minister +"</title>");
	//OpenWindow.document.write("<link href='CSSFiles/w2wlayout.css' rel='stylesheet' type='text/css'>")
	//OpenWindow.document.terry()
	OpenWindow.document.write("</center" + minister + "</center>");
	OpenWindow.document.write("<img src='pics/" + picname + ".jpg' /><br>");
	OpenWindow.document.write("<FORM><INPUT TYPE='BUTTON' VALUE='Close Window' onClick='window.close()'></FORM>")
    OpenWindow.document.write("<body><script type='text/javascript' language='javascript'>terry();</script></body>");
	OpenWindow.document.close();
}
function RemoveContent(d) {
document.getElementById(d).style.display = "none";
}
function ReplaceContent(d) {
document.getElementById(d).style.display = "";
for (n=1; n<13; n++)
	{
		//alert("test");
		p=String(n);
		if(n!=d)
		{
			//alert(n);
			document.getElementById(p).style.display = "none";
		}
		
	}
}
function textLimit(field, maxlen) {
	if (field.value.length > maxlen + 1)
	alert(maxlen + ' character limit please!');
	if (field.value.length > maxlen)
	field.value = field.value.substring(0, maxlen);
}
function privacy()
{
	var showlink = "Privacy Questions Mailbox";
	var showname = "privacy";
	var showhost = "referlocalbiz.com";
	document.write("<a href=" + "mail" + "to:" + showname + "&#64;" + showhost + ">" + showlink + "</a>")
}
function email()
{
	var showlink = "Email";
	var showname = "sales";
	var showhost = "referlocalbiz.com";
	document.write("<a href=" + "mail" + "to:" + showname + "&#64;" + showhost + ">" + showlink + "</a>")
}
function blue1()
{
	this.border.fill.presence = "visible"; 
	this.fillColor = "255,0,0"; // highlight in red
}
function showNewType() {
//alert('Start');
if (document.getElementById('CategoryID').value == 'Ad') {
//alert('Equal');
document.getElementById('TypeNew').style.display = '';
document.getElementById('TypeTitle').style.display = '';
} else {
document.getElementById('TypeNew').style.display = 'none';
document.getElementById('TypeTitle').style.display = 'none';
//alert('Not Equal');
}
}
