// JavaScript Document

function postage(){
window.open('../MMI_Postage_Pop.htm','name','height=300,width=450,top=20,left=20,toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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 MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_openBrWindow(theURL,winName,features) { //v2.01 ANM
  var subwin = window.open(theURL,winName,features);
  subwin.focus();
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v6.1 ANM
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function procFormN(form) {
	if (form.AgentName.value=="")
	{
		alert("Please enter the contact name");
		form.AgentName.focus();
		return;
	}
	if (form.AgentOPhone.value=="")
	{
		alert("Please enter your office phone number");
		form.AgentOPhone.focus();
		return;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.myform.AgentEmail.value)){
	alert("Invalid E-mail Address! Please re-enter.");
	document.myform.AgentEmail.focus();
	return;
	}
	if (form.AgentBrokerage.value=="")
	{
		alert("Please Enter your brokerage name");
		form.AgentBrokerage.focus();
		return;
	}
	if (form.BrokerageStreet.value=="")
	{
		alert("Please enter the street address of your brokerage");
		form.BrokerageStreet.focus();
		return;
	}
	if (form.BrokerageCity.value=="")
	{
		alert("Please enter your brokerage city, state and zip");
		form.BrokerageCity.focus();
		return;
	}
	if (form.message.value=="")
	{
		alert("Please enter your property description");
		form.message.focus();
		return;
	}
	if (form.filefield1.value==""&&!form.checkboxfile.checked)
	{
		alert("Please select a file to upload or select the option to use your picture on file");
		return;
	}
var theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
var	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("http://www.mymarketingmatters.com/upload/progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
	document.myform.action = "pc_orderinfo.asp?ID=" + theUniqueID;
form.submit();
	
}



function procFormP(form) {
	var radio_size=false;
	for (counter = 0; counter < form.premiumsize.length; counter++)
	{
		// If a radio button has been selected it will return true
		// (If not it will return false)
	if (form.premiumsize[counter].checked)
		radio_size = true; 
	}
	if (!radio_size)

	{
		alert("Please select a size");
		form.premiumsize.focus();
		return;
	}
	if (form.AgentName.value=="")
	{
		alert("Please enter the contact name");
		form.AgentName.focus();
		return;
	}
	if (form.AgentOPhone.value=="")
	{
		alert("Please enter your office phone number");
		form.AgentOPhone.focus();
		return;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.myform.AgentEmail.value)){
	alert("Invalid E-mail Address! Please re-enter.");
	document.myform.AgentEmail.focus();
	return;
	}
	if (form.AgentBrokerage.value=="")
	{
		alert("Please Enter your brokerage name");
		form.AgentBrokerage.focus();
		return;
	}
	if (form.BrokerageStreet.value=="")
	{
		alert("Please enter the street address of your brokerage");
		form.BrokerageStreet.focus();
		return;
	}
	if (form.BrokerageCity.value=="")
	{
		alert("Please enter your brokerage city, state and zip");
		form.BrokerageCity.focus();
		return;
	}
	if (form.message.value=="")
	{
		alert("Please enter your property description");
		form.message.focus();
		return;
	}
	if (form.filefield1.value==""&&!form.checkboxfile.checked)
	{
		alert("Please select a file to upload or select the option to use your picture on file");
		return;
	}
var theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
var	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("http://www.mymarketingmatters.com/upload/progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
	document.myform.action = "pc_orderinfo.asp?ID=" + theUniqueID;
form.submit();
	
}



function procFormCBFR(form) {
var radio_payment=false;
	if (form.AgentName.value=="")
	{
		alert("Please enter the contact name");
		form.AgentName.focus();
		return;
	}
	if (form.AgentOPhone.value=="")
	{
		alert("Please enter your office phone number");
		form.AgentOPhone.focus();
		return;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.myform.AgentEmail.value))
	{
	alert("Invalid E-mail Address! Please re-enter.");
	document.myform.AgentEmail.focus();
	return;
	}
	if (form.AgentBrokerage.value=="")
	{
		alert("Please Enter your brokerage name");
		form.AgentBrokerage.focus();
		return;
	}
	if (form.AgentManager.value=="")
	{
		alert("Please Enter your office manager name");
		form.AgentManager.focus();
		return;
	}
	if (form.BrokerageStreet.value=="")
	{
		alert("Please enter the street address of your brokerage");
		form.BrokerageStreet.focus();
		return;
	}
	if (form.BrokerageCity.value=="")
	{
		alert("Please enter your brokerage city, state and zip");
		form.BrokerageCity.focus();
		return;
	}
	for (counter = 0; counter < form.agentpreviews.length; counter++)
	{
	// If a radio button has been selected it will return true
	// (If not it will return false)
	if (form.agentpreviews[counter].checked)
	{
	radio_payment = true; 
	}
	if (!radio_payment)
	{
		alert("Please select if you are a previews agent");
		return
	}
	}
	if (form.MailingInfo.value=="")
	{
		alert("Please enter mailing instructions for your order");
		form.MailingInfo.focus();
		return;
	}
	if (form.filefield1.value==""&&!form.checkboxfile.checked)
	{
		alert("Please select a file to upload or select the option to use your picture on file");
		return;
	}
	if (form.Property1Street.value=="")
	{
		alert("Please enter the property address of one of your current listings");
		form.Property1Street.focus();
		return;
	}
	if (form.Property1City.value=="")
	{
		alert("Please enter the price of the listed property");
		form.Property1City.focus();
		return;
	}
	if (form.filefield2.value=="")
	{
		alert("Please select a picture to upload for your listed property");
		form.filefield2.focus();
		return;
	}
	if (form.Property5Street.value=="")
	{
		alert("Please enter the property address of one of the properties you sold");
		form.Property5Street.focus();
		return;
	}
	if (form.Property5City.value=="")
	{
		alert("Please enter the price of the sold property");
		form.Property5City.focus();
		return;
	}
	if (form.filefield6.value=="")
	{
		alert("Please select a picture to upload for your sold property");
		form.filefield6.focus();
		return;
	}
var theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
var	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("http://www.mymarketingmatters.com/upload/progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
	document.myform.action = "http://www.mymarketingmatters.com/upload/cb_submit.asp?ID=" + theUniqueID;
form.submit();
	
}


function procFormSC(form) {
	if (form.AgentName.value=="")
	{
		alert("Please enter the contact name");
		form.AgentName.focus();
		return;
	}
	if (form.AgentOPhone.value=="")
	{
		alert("Please enter your office phone number");
		form.AgentOPhone.focus();
		return;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.myform.AgentEmail.value)){
	alert("Invalid E-mail Address! Please re-enter.");
	document.myform.AgentEmail.focus();
	return;
	}
	if (form.AgentBrokerage.value=="")
	{
		alert("Please Enter your brokerage name");
		form.AgentBrokerage.focus();
		return;
	}
	if (form.BrokerageStreet.value=="")
	{
		alert("Please enter the street address of your brokerage");
		form.BrokerageStreet.focus();
		return;
	}
	if (form.BrokerageCity.value=="")
	{
		alert("Please enter your brokerage city, state and zip");
		form.BrokerageCity.focus();
		return;
	}
	if (form.SchschedST.value=="")
	{
		alert("Please enter the state you want the school schedule for");
		form.SchschedST.focus();
		return;
	}
	if (form.SchschedCounty.value=="")
	{
		alert("Please enter the county you want the school schedule for");
		form.SchschedCounty.focus();
		return;
	}
	if (form.filefield1.value==""&&!form.checkboxfile.checked)
	{
		alert("Please select a file to upload or select the option to use your picture on file");
		return;
	}
var theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
var	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("http://www.mymarketingmatters.com/upload/progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
	document.myform.action = "pc_orderinfo.asp?ID=" + theUniqueID;
form.submit();
	
}
function procFormBC(form) {
	if (form.BCPrice.value=="$0.00")
	{  alert("Please select a business card quantity")
		form.bcardssidesqty.focus();
		return;
	}
	if (form.AgentName.value=="")
	{
		alert("Please enter the contact name");
		form.AgentName.focus();
		return;
	}
	if (form.AgentOPhone.value=="")
	{
		alert("Please enter your office phone number");
		form.AgentOPhone.focus();
		return;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.myform.AgentEmail.value)){
	alert("Invalid E-mail Address! Please re-enter.");
	document.myform.AgentEmail.focus();
	return;
	}
	if (form.AgentBrokerage.value=="")
	{
		alert("Please Enter your brokerage name");
		form.AgentBrokerage.focus();
		return;
	}
	if (form.BrokerageStreet.value=="")
	{
		alert("Please enter the street address of your brokerage");
		form.BrokerageStreet.focus();
		return;
	}
	if (form.BrokerageCity.value=="")
	{
		alert("Please enter your brokerage city, state and zip");
		form.BrokerageCity.focus();
		return;
	}
	if (form.filefield1.value==""&&!form.checkboxfile.checked)
	{
		alert("Please select a file to upload or select the option to use your picture on file");
		return;
	}
var theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
var	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("http://www.mymarketingmatters.com/upload/progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
	document.myform.action = "pc_orderinfo.asp?ID=" + theUniqueID;
form.submit();
	
}
function procForm(form) {
	if (form.AgentName.value=="")
	{
		alert("Please enter the contact name");
		form.AgentName.focus();
		return;
	}
	if (form.AgentOPhone.value=="")
	{
		alert("Please enter your office phone number");
		form.AgentOPhone.focus();
		return;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.myform.AgentEmail.value)){
	alert("Invalid E-mail Address! Please re-enter.");
	document.myform.AgentEmail.focus();
	return;
	}
	if (form.AgentBrokerage.value=="")
	{
		alert("Please Enter your brokerage name");
		form.AgentBrokerage.focus();
		return;
	}
	if (form.BrokerageStreet.value=="")
	{
		alert("Please enter the street address of your brokerage");
		form.BrokerageStreet.focus();
		return;
	}
	if (form.BrokerageCity.value=="")
	{
		alert("Please enter your brokerage city, state and zip");
		form.BrokerageCity.focus();
		return;
	}
	if (form.message.value=="")
	{
		alert("Please enter your property description");
		form.message.focus();
		return;
	}
	if (form.OHDate.value=="")
	{
		alert("Please enter your open house date");
		form.OHDate.focus();
		return;
	}
	if (form.OHTime.value=="")
	{
		alert("Please enter your open house time");
		form.OHTime.focus();
		return;
	}
	
	if (form.filefield1.value==""&&!form.checkboxfile.checked)
	{
		alert("Please select a file to upload or select the option to use your picture on file");
		return;
	}
var theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
var	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("http://www.mymarketingmatters.com/upload/progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
	document.myform.action = "pc_orderinfo.asp?ID=" + theUniqueID;
form.submit();
	
}
function procFormOHF(form) {
	if (form.AgentName.value=="")
	{
		alert("Please enter the contact name");
		form.AgentName.focus();
		return;
	}
	if (form.AgentOPhone.value=="")
	{
		alert("Please enter your office phone number");
		form.AgentOPhone.focus();
		return;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.myform.AgentEmail.value)){
	alert("Invalid E-mail Address! Please re-enter.");
	document.myform.AgentEmail.focus();
	return;
	}
	if (form.AgentBrokerage.value=="")
	{
		alert("Please Enter your brokerage name");
		form.AgentBrokerage.focus();
		return;
	}
	if (form.BrokerageStreet.value=="")
	{
		alert("Please enter the street address of your brokerage");
		form.BrokerageStreet.focus();
		return;
	}
	if (form.BrokerageCity.value=="")
	{
		alert("Please enter your brokerage city, state and zip");
		form.BrokerageCity.focus();
		return;
	}
	if (form.message.value=="")
	{
		alert("Please enter your property description");
		form.message.focus();
		return;
	}
	if (form.OHDate.value=="")
	{
		alert("Please enter your open house date");
		form.OHDate.focus();
		return;
	}
	if (form.OHTime.value=="")
	{
		alert("Please enter your open house time");
		form.OHTime.focus();
		return;
	}
	if (form.OHFeatures.value=="")
	{
		alert("Please enter the features as you want them to appear on your flyer");
		form.OHFeatures.focus();
		return;
	}
	
	if (form.filefield1.value==""&&!form.checkboxfile.checked)
	{
		alert("Please select a file to upload or select the option to use your picture on file");
		return;
	}
var theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
var	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("http://www.mymarketingmatters.com/upload/progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
	document.myform.action = "pc_orderinfo_nomail.asp?ID=" + theUniqueID;
form.submit();
	
}
function procFormH(form) {
	if (form.AgentName.value=="")
	{
		alert("Please enter the contact name");
		form.AgentName.focus();
		return;
	}
	if (form.AgentOPhone.value=="")
	{
		alert("Please enter your office phone number");
		form.AgentOPhone.focus();
		return;
	}
	if (!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.myform.AgentEmail.value)){
	alert("Invalid E-mail Address! Please re-enter.");
	document.myform.AgentEmail.focus();
	return;
	}
	if (form.AgentBrokerage.value=="")
	{
		alert("Please Enter your brokerage name");
		form.AgentBrokerage.focus();
		return;
	}
	if (form.BrokerageStreet.value=="")
	{
		alert("Please enter the street address of your brokerage");
		form.BrokerageStreet.focus();
		return;
	}
	if (form.BrokerageCity.value=="")
	{
		alert("Please enter your brokerage city, state and zip");
		form.BrokerageCity.focus();
		return;
	}
	if (form.filefield1.value==""&&!form.checkboxfile.checked)
	{
		alert("Please select a file to upload or select the option to use your picture on file");
		return;
	}
var theFeats = "height=120,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
var	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("http://www.mymarketingmatters.com/upload/progressbar.asp?ID=" + theUniqueID, theUniqueID, theFeats);
	document.myform.action = "pc_orderinfo.asp?ID=" + theUniqueID;
form.submit();
	
}

function procForm1 (form) {
var radio_payment=false;
var radio_postage=false;
if (form.JobName.value=="")
	{
		alert("Please enter a job name");
		form.JobName.focus();
		return;
	}

for (counter = 0; counter < form.PayMeth.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (form.PayMeth[counter].checked)
radio_payment = true; 
}
if (!radio_payment)

	{
		alert("Please enter your payment method");
		form.JobName.focus();
		return;
	}
	
	
for (counter = 0; counter < form.Postage.length; counter++)
	{
	// If a radio button has been selected it will return true
	// (If not it will return false)
	if (form.Postage[counter].checked)
		radio_postage = true; 
	}
	if (!radio_postage)

	{
		alert("Please Select Postage Type");
		form.Postage.focus();
		return;
	}
	
	if (form.mailinfo.value=="")
	{
		alert("Please enter your mailing information");
		form.mailinfo.focus();
		return;
	}
	if (form.maildate.value=="")
	{
		alert("Please enter your mailing date");
		form.maildate.focus();
		return;
	}

document.myform.action = "pc_thankyou.asp";
form.submit();
	
}
function procFormtest (form) {
var radio_payment=false;
var radio_postage=false;
var n;
var self_mailer = null;
var extras=null;
var extras_value;
if (form.JobName.value=="")
	{
		alert("Please enter a job name");
		form.JobName.focus();
		return;
	}

for (counter = 0; counter < form.PayMeth.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (form.PayMeth[counter].checked)
radio_payment = true; 
}
if (!radio_payment)

	{
		alert("Please enter your payment method");
		form.JobName.focus();
		return;
	}
	
	
for (counter = 0; counter < form.Postage.length; counter++)
	{
	// If a radio button has been selected it will return true
	// (If not it will return false)
	if (form.Postage[counter].checked)
		radio_postage = true; 
	}
	if (!radio_postage)

	{
		alert("Please Select Postage Type");
		form.Postage.focus();
		return;
	}

	
	if (form.mailinfo.value=="")
	{
		alert("Please enter your mailing information");
		form.mailinfo.focus();
		return;
	}
  for (n=0; n < form.MailingSelf.length; n++)
                  if (form.MailingSelf[n].checked)
                        self_mailer = form.MailingSelf[n].value;
 
            if (!self_mailer) {
                  alert("Please Select If You Want To Be Included In The Mailing");
                	form.MailingSelf.focus();
					return;
				}

            if (self_mailer == "Yes" && form.mailingselfaddress.value.length == 0) {
                  alert("Please enter the address that you want to include in the mailing");
                  form.mailingselfaddress.focus();
                  return;            
            }
			
for (counter = 0; counter < form.extrasship.length; counter++)
	
	// If a radio button has been selected it will return true
	// (If not it will return false)
	if (form.extrasship[counter].checked)
		extras =form.extrasship[counter].value;
	
	if (!extras)

	{
		alert("Please Select If You Want Extras To Be Shipped To You");
		form.extrasship.focus();
		return;
	}
	
	if (extras == "Yes" && form.extrasqty.value.length == 0) {
                  alert("Please enter the number of extras you want");
                  form.extrasqty.focus();
                  return;            
            }
	if (extras == "Yes" && form.extrasshipaddress.value.length == 0) {
                  alert("Please enter the address that you want the extras shipped to");
                  form.extrasshipaddress.focus();
                  return;            
            }
	
	if (form.maildate.value=="")
	{
		alert("Please enter your mailing date");
		form.maildate.focus();
		return;
	}

document.myform.action = "pc_thankyou.asp";
form.submit();
	
}




function procFormnomail (form) {
var radio_payment=false;
var radio_postage=false;
var n;
var self_mailer = null;
var extras=null;
var extras_value;
if (form.JobName.value=="")
	{
		alert("Please enter a job name");
		form.JobName.focus();
		return;
	}
if (form.JobQty.value=="")
	{
		alert("Please enter quantity");
		form.JobQty.focus();
		return;
	}

for (counter = 0; counter < form.PayMeth.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (form.PayMeth[counter].checked)
radio_payment = true; 
}
if (!radio_payment)

	{
		alert("Please enter your payment method");
		form.JobName.focus();
		return;
	}
	
	
document.myform.action = "pc_thankyou_nomail.asp";
form.submit();
	
}


function enablemailaddress(){
	
	myform.mailingselfaddress.disabled=false;
}


function procFormOBC (form) {
var radio_payment=false;
if (form.AcName.value=="")
	{
		alert("Please enter the agent name");
		form.AcName.focus();
		return;
	}
if (form.JobName.value=="")
	{
		alert("Please enter a job name");
		form.JobName.focus();
		return;
	}

for (counter = 0; counter < form.PayMeth.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (form.PayMeth[counter].checked)
radio_payment = true; 
}
if (!radio_payment)

	{
		alert("Please enter your payment method");
		form.JobName.focus();
		return;
	}
document.myform.action = "pc_thankyou.asp";
form.submit();
	
}
function textCounter(field, countfield, maxlimit) {
	 // if too long...trim it!
	 if (
		field.value.length > maxlimit)
		field.value = field.value.substring(0, maxlimit);
	// otherwise, update 'characters left' counter
	else 
		countfield.value = maxlimit - field.value.length;
}
function MM_setTextOfTextfield(objName,x,newText) { //v3.0
  var obj = MM_findObj(objName); if (obj) obj.value = newText;
}

function ratecalc(form){
bcardsizeqty=document.myform.bcardssidesqty.options[document.myform.bcardssidesqty.selectedIndex].value;
if (bcardsizeqty=="Single Sided - 250")
{
form.BCPrice.value= "$29.00"
}
else if(bcardsizeqty=="Single Sided - 500")
{
form.BCPrice.value= "$49.00"
}
else if(bcardsizeqty=="Single Sided - 1,000")
{
form.BCPrice.value= "$89.00"
}
else if(bcardsizeqty=="Single Sided - 2,500")
{
form.BCPrice.value= "$149.00"
}
else if(bcardsizeqty=="Single Sided - 5,000")
{
form.BCPrice.value= "$199.00"
}
else if(bcardsizeqty=="Double Sided - 250")
{
form.BCPrice.value= "$35.00"
}
else if(bcardsizeqty=="Double Sided - 500")
{
form.BCPrice.value= "$59.00"
}
else if(bcardsizeqty=="Double Sided - 1,000")
{
form.BCPrice.value= "$99.00"
}
else if(bcardsizeqty=="Double Sided - 2,500")
{
form.BCPrice.value= "$175.00"
}
else if(bcardsizeqty=="Double Sided - 5,000")
{
form.BCPrice.value= "$225.00"
}
else
{
form.BCPrice.value= "$0.00"
}
}
function CheckCheckBox(form)
{
  if (document.myform.price.value!=1)
  document.myform.bcardssidesqty.focus()
}