
function openWindow(url,w,h,tb,stb,l,mb,sb,rs,x,y){
var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y; //A LITTLE CROSS-BROWSER CODE FOR WINDOW POSITIONING
tb=(tb)?'yes':'no'; stb=(stb)?'yes':'no'; l=(l)?'yes':'no'; mb=(mb)?'yes':'no'; sb=(sb)?'yes':'no'; rs=(rs)?'yes':'no';
var x=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',resizable='+rs+t);
x.focus();
}
function goback(){
history.back();
}
var msg_box ="Source Code not available here. Inquire at www.SiteNSeo.com";

function dis_rightclickIE(){
	if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
		alert(msg_box)
}
function dis_rightclickNS(e){
	if ((document.layers||document.getElementById&&!document.all) && (e.which==2||e.which==3))
	{
	alert(msg_box)
	return false;
	}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=dis_rightclickNS;
}
else if (document.all&&!document.getElementById){
document.onmousedown=dis_rightclickIE;
}
document.oncontextmenu=new Function("alert(msg_box);return false")

	function floor(number)
	{
	  return Math.floor(number*Math.pow(10,2))/Math.pow(10,2);
	}
	
	function dosum()
	{
	  var mi = document.temps.IR.value / 1200;
	  var base = 1;
	  var mbase = 1 + mi;
	  for (i=0; i<document.temps.YR.value * 12; i++)
	  {
	    base = base * mbase
	  }
	  document.temps.PI.value = floor(document.temps.LA.value * mi / ( 1 - (1/base)))
	  document.temps.MT.value = floor(document.temps.AT.value / 12)
	  document.temps.MI.value = floor(document.temps.AI.value / 12)
	  var dasum = document.temps.LA.value * mi / ( 1 - (1/base)) +
		document.temps.AT.value / 12 + 
		document.temps.AI.value / 12;
	  document.temps.MP.value = floor(dasum);
	}

function sitenseo_password(form) { 
 if (form.ID.value=="dls") { 
    if (form.pass.value=="pat") { 
      location="http://www.dlsprecast.com/images/x00.pdf"  
     
} else { 
      alert("Sorry " +form.ID.value+ ", wrong password.") 
    } 
  } else { 
    alert("Invalid Name") 
  } 
} 


