var winProjects
			
//opens up separate window for program description		
function loadDesc(filename)
{
	var x = screen.availWidth / 20
	var y = screen.availHeight / 6

	var strURL = "appdesc/" + filename + ".htm";
	winProjects=window.open(strURL,"Description",'menubar=0 width=670 height= 520 scrollbars=1');
	winProjects.focus();
	closeall();
}

function openBookDescWin(url){
	var x = screen.availWidth / 20
	var y = screen.availHeight / 6

	winProjects=window.open(url,"BookDesc",'menubar=1 width=670 height= 520 scrollbars=1 resizable');
	winProjects.focus();
}//-----------------------------------------------

function openBookwin(url){
	var x = screen.availWidth / 20
	var y = screen.availHeight / 6

	winProjects=window.open(url,"BookInfo",'menubar=0 width=670 height= 520 scrollbars=1 resizable');
	winProjects.focus();
	closeall();
}//-----------------------------------------------

function openDecker(url){
	var x = screen.availWidth / 20
	var y = screen.availHeight / 6

	winProjects=window.open(url,"BookInfo",'menubar=0 width=670 height= 520 scrollbars=1 resizable');
	winProjects.focus();
}//-----------------------------------------------


//opens up separate window for What's New information
function loadWhatsNew(filename)
{
	var x = screen.availWidth / 20
	var y = screen.availHeight / 6

	var strURL = "WhatsNew/" + filename + ".htm";
	//winProjects=window.open(strURL,"Features",'menubar=0 width=670 height= 520 scrollbars=1');
	winProjects=window.open(strURL,"Features",'menubar=0 width=670 height= 520 scrollbars=1 resizable');
	winProjects.focus();
	closeall();
}



//verify corrosponding window is opened before trying to open another one
function checkChild()
{
	if (typeof(winProjects) != "undefined")
	{
		winProjects.close();
	}
}


//disposing individual windows
function closeMe()
{
	self.close();
}

//opens webservice test screen
function tryit(){
	var winTryit;
	
	winTryit = window.open("webservice/default.aspx","Try_it",'menubar=0 width=460 height=580 scrollbars=1');
	winTryit.focus();
}


//opens Testimonials page
function openTestimonials(){
	var winTestimonials;
	
	winTestimonials = window.open("testimonials.htm","Testimonials",'menubar=0 width=550 height=580 scrollbars=1');
	winTestimonials.focus();
}

//opens $99 Deals
function openSpecialOffer(){
	var winSpecialOffer;
	
	winSpecialOffer = window.open("specials/instructions.htm","SpecialOffer",'menubar=1 width=450 height=580 scrollbars=1, resizable');
	winSpecialOffer.focus();
}


//Seminar Payment PDF form
function openWShopOrder(){
	var winopenWShopOrder;
	
	winopenWShopOrder = window.open("pdfForms/WShopOrder.pdf","WorkshopPayment",'menubar=1 width=450 height=580 scrollbars=1, resizable');
	winopenWShopOrder.focus();
}


//Sotware Payment PDF form
function openSoftOrder(){
	var winopenSoftOrder;
	
	winopenSoftOrder = window.open("pdfForms/SoftwareOrderForm.pdf","SoftwarePayment",'menubar=1 width=450 height=580 scrollbars=1, resizable');
	winopenSoftOrder.focus();
}
	

//Client Validator info window
function openCv(){
	var winCv;
	
	winCv = window.open("WhatsNew/cvalidator.htm","CValidator",'menubar=0 width=550 height=600 scrollbars=0');
	winCv.focus();	
}


//closes current window and open up the download document
function openDownloadDoc(ProdID){
	var downLoadURL = "../demos.aspx?ProdID=" + ProdID
	
	
	window.opener.location = downLoadURL
	self.close();
}


//Promotional  Payment PDF form
function openPromoPdf(){
	var winopenPromoPdf;
	
	winopenPromoPdf = window.open("../pdfForms/SoftwareOrderForm.pdf","PromotionalPayment",'menubar=1 width=450 height=580 scrollbars=1, resizable');
	winopenPromoPdf.focus();
}


//invokes the browsers print engine
function printDoc(appname)
{
	window.print();
}