var today = new Date()
var weekDayName = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthName = new Array ("January","February","March","April","May","June","July","August","September","October","November","December")
//function printDate()
//{
//document.write("&nbsp;"+weekDayName[today.getDay()]+ ", " + monthName[today.getMonth()] + " " + today.getDate()+ ", " + today.getYear())
//}
function startTimeS()
{
var today=new Date()
var h=today.getHours()
var m=today.getMinutes()
var s=today.getSeconds()
var amOrPm = "AM";
if (h > 11) amOrPm = "PM";
if (h > 12) h = h - 12;
if (h == 0) h = 12;
// add a zero in front of numbers<10
m=checkTimeS(m)
s=checkTimeS(s)
document.getElementById('txt').innerHTML=weekDayName[today.getDay()]+ ", " + monthName[today.getMonth()] + " " + today.getDate()+ ", " + today.getYear()+"&nbsp;&nbsp;&nbsp;&nbsp;"+h+":"+m+":"+s+"&nbsp;"+amOrPm
t=setTimeout('startTimeS()',500)
}
function checkTimeS(i)
{
if (i<10) 
  {i="0" + i}
  return i
}
function CloseItS(){
window.parent.opener = self; 
window.parent.close();
}
function OpenWindowS(URLString,WDTH,HGHT,TP,LFT,YN,SCR)
{

	if (URLString == "")
		alert ("Error: Could not open site ... \nThe location is unknown.");
	else
		//window.open(URLString,"newwindow", "scrollbars=no,resizable=no,top=50,left=50,width=700,height=330")
		{
		var title =  "Saleslink"
		//var windowprops = "top=0,right=0,resizable=no" + ",width=" + (screen.width / 1.7) // + ",height=50";
		//var windowprops = "width=700,height=200,top=50,left=50,resizable=no,scrollbars=no";
		var windowprops = "width="+WDTH+",height="+HGHT+",top="+TP+",left="+LFT+",resizable=no,scrollbars="+SCR+",toolbar="+YN;		
		var URLpop = (URLString)
		var autoclose = true
		//NFW = window.open("","mytarget2",windowprops) 
		NFW = window.open(URLpop,"_blank",windowprops) 
		//var frameString=""+
		//"<html>"+
		//"<head>"+
		//"<title>"+title+"</title>"+
		//"</head>"+
		//"<script type=\"text/JavaScript\">" +
		////"function Cookie2(){" +
		////"if (document.cookie.substring(0,2)==\"11\"){" +
		////"document.cookie=\"10\"} " +
		////"if (document.cookie.substring(0,2)==\"01\"){" +
		////"document.cookie=\"00\"} " +
		////"}" +
		//"</script>" +
		////"<frameset onunload=\"Cookie2();\">" +
		//"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
		//"<frame name='top' src='"+URLpop+"' scrolling=no>"+
		//"<frame name='bottom' src='SEL' scrolling='no'>"+
		//"</frameset>"+
		//"</html>"
		//NFW.document.open();
		//NFW.document.write(frameString);
		//NFW.document.close();
		}
NFW.focus()
//window.onunload = function(){EliminatePopUps()}
}
