// JavaScript Document


<!--
if (window!= top)
top.location.href=location.href
// -->


<!--
var gt = unescape('%3e');
var popup = null;
var over = "Launch Pop-up Navigator";
  popup = window.open('', 'popupnav1', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=515,left = 100,top = 15');
  if (popup != null) {
    if (popup.opener == null) {
      popup.opener = self;    
}
    popup.location.href = 'http://mtlwebmarketing.com/CPT/popup3.htm';
  	popup.blur()
  }
// -->


function toProperCase(incomingString) {
var outgoingString = "";
outgoingString = incomingString.charAt(0).toUpperCase();
for (i=1; i<incomingString.length; i++) {
     if (incomingString.charAt(i-1) == " ") {
     outgoingString = outgoingString + incomingString.charAt(i).toUpperCase();
} else {    
outgoingString= outgoingString + incomingString.charAt(i).toLowerCase();
}
}
document.townlive.city.value = outgoingString;
return true;
}


function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 


<!--
function frmVrfy() {
	if ((document.srchFrm.srch.value != '') && (document.srchFrm.srchState.selectedIndex != '')) {
	 if (document.srchFrm.srchType.selectedIndex == "Category")
	 	document.srchFrm.action = "something.asp";
	 document.srchFrm.submit();
	}else {
		document.srchFrm.srch.value = 'Required';
	}
}
//-->


<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
//-->


<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->


function jumpPage2(newLoc){
	newPage = window.open("","newCam","toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=785,height=504,left=0,top=0,screenx=0,screeny=0");
	newPage.document.open();
	newPage.document.write("<html><head>");
	newPage.document.write("</head><frameset rows='155,*' cols='*' frameborder='NO' bordercolor='#000000'>");
	newPage.document.write("<frame src='http://www.couchpotatotravel.com/cpx/root/Home/cptchildframe.html' border='0' scrolling='NO' noresize>");
	newPage.document.write("<frame src='" + newLoc + "' noresize>");
	newPage.document.write("</frameset>");
	newPage.document.write("</html>");
	newPage.document.close();
	newPage.focus()
}


CSAg = window.navigator.userAgent; CSBVers =
parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
        var curDoc = ly ? ly.document : document; var elem = curDoc[n];
        if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
                elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
        return elem;
}


