
function contctForm(nameLabel, companyLabel, emailLabel, commentsLabel, emailAddress, cc, bcc, subject, bgColor )
{
	var imageUrl = "/images/cimg/";
	var webServiceUrl = "http://ascdservices.universe:8090/EmailWebService.asmx?wsdl";
	var params = "myImageUrl=" + imageUrl + "&myName=" + nameLabel + "&myCompany=" + companyLabel + "&myEmail=" + emailLabel + "&myComments=" + commentsLabel + "&myEmailAddress=" + emailAddress + "&myCc=" + cc + "&myBcc=" + bcc + "&myWebService=" + webServiceUrl + "&mySubject=" + subject + "&myBgColor=" + bgColor; 

	document.write("<object align='middle' height='400' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' id='contactform' width='170' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0'><param name='allowScriptAccess' value='always' />");
	document.write("<param name='salign' value='l' />");
	document.write("<param name='movie' value='/ASCD/media/siteASCD/contactForm.swf' />");
	document.write("<param name='flashvars' value='");	
	document.write(params +  "' />");
	document.write("<param name='menu' value='false' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='bgcolor' value='#ffffff' />");
	document.write("<embed src='/ASCD/media/siteASCD/contactForm.swf' flashvars='");		
	document.write(params);	
	document.write("' menu='false' quality='high' bgcolor='#ffffff' width='170' height='400' salign='l' name='contactform' align='middle' allowscriptaccess='always' allowfullscreen='false' swliveconnect='true' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer' /></embed></object>");

/*

	if(window.contactform) 
	{
		window.document["contactform"].SetVariable("myName", nameLabel);
		window.document["contactform"].SetVariable("myCompany", companyLabel);
		window.document["contactform"].SetVariable("myEmail", emailLabel);
		window.document["contactform"].SetVariable("myComments", commentsLabel);
		window.document["contactform"].SetVariable("myEmailAddress", emailAddress);
		window.document["contactform"].SetVariable("myCc", cc);
		window.document["contactform"].SetVariable("myBcc", bcc);
		window.document["contactform"].SetVariable("myImageUrl",imageUrl);
		window.document["contactform"].SetVariable("myWebService", webServiceUrl);

	}

	if(document.contactform)  
	{
		document.contactform.SetVariable("myName", nameLabel);
		document.contactform.SetVariable("myCompany",companyLabel);
		document.contactform.SetVariable("myEmail", emailLabel);
		document.contactform.SetVariable("myComments", commentsLabel);
		document.contactform.SetVariable("myEmailAddress", emailAddress);
		document.contactform.SetVariable("myCc", cc);
		document.contactform.SetVariable("myBcc", bcc);
		document.contactform.SetVariable("myImageUrl",imageUrl);
		document.contactform.SetVariable("myWebService", webServiceUrl);
	}

*/
}

function contactFormWide(nameLabel, emailLabel, companyLabel, commentsLabel, emailAddress, cc, bcc, subject, bgColor )
{
	var imageUrl = "/images/cimg/";
	var webServiceUrl = "http://ascdservices.universe:8090/EmailWebService.asmx?wsdl";
	var params = "myImageUrl=" + imageUrl + "&myName=" + nameLabel + "&myEmail=" + emailLabel + "&myCompany=" + companyLabel + "&myComments=" + commentsLabel + "&myEmailAddress=" + emailAddress + "&myCc=" + cc + "&myBcc=" + bcc + "&myWebService=" + webServiceUrl + "&mySubject=" + subject + "&myBgColor=" + bgColor; 

	document.write("<object align='middle' height='435' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' id='contactFormWide' width='389' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0'><param name='allowScriptAccess' value='always' />");
	document.write("<param name='salign' value='l' />");
	document.write("<param name='movie' value='/ASCD/media/siteASCD/contactFormWide.swf' />");
	document.write("<param name='flashvars' value='");	
	document.write(params +  "' />");
	document.write("<param name='menu' value='false' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='bgcolor' value='#ffffff' />");
	document.write("<embed src='/ASCD/media/siteASCD/contactFormWide.swf' flashvars='");		
	document.write(params);	
	document.write("' menu='false' quality='high' bgcolor='#ffffff' width='389' height='435' salign='l' name='contactformWide' align='middle' allowscriptaccess='always' allowfullscreen='false' swliveconnect='true' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer' /></embed></object>");

}



