function validate() {
	if (document.check.phone.value == "" || document.check.phone.value.length < 10) {
		alert("Oops. Please enter your SBC phone number again. Be sure to include your area code.");
		document.check.phone.focus();
	} else {
		window.location='https://swot.sbc.com/swot/serviceQual.do?TN=' + document.check.phone.value 
			+ '&promoCode=CBLSW2&ISPCD=101&returnURL=http://www.sbc.com/switchtodsl/';
	}
}

function top_flash() {
	if (!useRedirect) {    // if dynamic embedding is turned on
		if(hasRightVersion) {  // if we've detected an acceptable version
		   	var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
	    		+ 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '
		   		+ 'width="675" height="68" id="headline_scroller" align="middle">'
    			+ '<param name="allowScriptAccess" value="sameDomain" />'
				+ '<param name="movie" value="headline_scroller.swf" />'
				+ '<param name="quality" value="high" />'
				+ '<param name="bgcolor" value="#00157b" />'
				+ '<embed src="headline_scroller.swf" quality="high" bgcolor="#00157b" width="675" height="68" name="headline_scroller" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
				+ '<\/object>';	
			document.write(oeTags);   // embed the flash movie
		} else {  // flash is too old or we can't detect the plugin
		   	// NOTE: height, width are required!
			var alternateContent = '<img src="headline_scroller.gif" width="675" height="68" alt="Sign up for SBC Yahoo! DSL now" title="Sign up for SBC Yahoo! DSL now" />';
			document.write(alternateContent);  // insert non-flash content
		}
	}
}

function bottom_flash() {
	if (!useRedirect) {    // if dynamic embedding is turned on
		if(hasRightVersion) {  // if we've detected an acceptable version
    		var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '
    			+ 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" '
   		 		+ 'width="688" height="229" id="swapout" align="middle">'
				+ '<param name="allowScriptAccess" value="sameDomain" />'
				+ '<param name="movie" value="swapout.swf" />'
				+ '<param name="quality" value="high" />'
				+ '<param name="bgcolor" value="#ffffff" />'
				+ '<embed src="swapout.swf" quality="high" bgcolor="#ffffff" width="688" height="229" name="swapout" '
				+ 'align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" '
				+ 'pluginspage="http://www.macromedia.com/go/getflashplayer" />'
				+ '<\/object>';	
			document.write(oeTags);   // embed the flash movie
		} else {  // flash is too old or we can't detect the plugin
 		  	// NOTE: height, width are required!
			var alternateContent = '<img src="swapout_area.jpg" width="688" height="229" alt="Sign up for SBC Yahoo! DSL now" title="Sign up for SBC Yahoo! DSL now" />';
			document.write(alternateContent);  // insert non-flash content
		}
	}
}
