var contentContent = "<div class='bodyHeader'>Salinas</div>"
						+"<table border='0' cellspacing='10' cellpadding='0'>"
							+"<tr>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/A_SALINAS_2_SUMMARY_DRILL_OUT_AND_RE-ESTABLISH_PRODUCTION.pdf' title='A_SALINAS_#2_SUMMARY_DRILL_OUT_AND_RE-ESTABLISH_PRODUCTION.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />THE SALINAS RANCH PROSPECT</a>"
								+"</td>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/MAP_PLAT_SALINAS_2.pdf' title='MAP_PLAT_SALINAS_#2.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />SALINAS RANCH PROSPECT MAP</a>"
								+"</td>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/MAP_WILCOX_TREND_S_TEXAS.pdf' title='MAP_WILCOX_TREND_S_TEXAS.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />REGIONAL EXPANDED WILCOX TREND MAP</a>"
								+"</td>"
							+"</tr>"
							+"<tr>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/Salinas_Production.pdf' title='Salinas_Production.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />SALINAS #2 Zapata County, Texas</a>"
								+"</td>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/SALINAS_RANCH_FIELD_TERMS_AQUISITION_AND_DRILL_OUT_PLUGS.pdf' title='SALINAS_RANCH_FIELD_TERMS_AQUISITION_AND_DRILL_OUT_PLUGS.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />SALINAS RANCH PROSPECT</a>"
								+"</td>"
							+"</tr>"
						+"</table>"
						+"<div class='bodyHeader'>Eagle Ford Shale</div>"
						+"The Eagle Ford Formation is a sedimentary rock formation of Cretaceous age underlying much of southern and eastern Texas, United States, consisting of organic-rich fossiliferous marine shale. It derives its name from the old community of Eagle Ford, now a neighborhood in West Dallas, Texas, where outcrops of the Eagle Ford Shale were first observed. Such outcrops can be seen in the geology of the Dallas Fort Worth Metroplex, and are labeled on images with the label ''Kef''. The Eagle Ford Shale is one of the most actively drilled targets for oil and gas in the United States in 2010."
						+"<br /><br />"
						+"<table border='0' cellspacing='10' cellpadding='0'>"
							+"<tr>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/A_ON_THE_BORDER_PROSPECT_ SUMMARY_.pdf' title='A_ON_THE_BORDER_PROSPECT_ SUMMARY_.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />QUEMADO AREA-CARLOTA FIELD</a>"
								+"</td>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/eagleford-oilproduction.pdf' title='eagleford-oilproduction.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />Texas Eagle Ford Shale Oil Production 2004 through July 2011</a>"
								+"</td>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/MAP_TOP_OF_GEORGETOWN_small.pdf' title='MAP_TOP_OF_GEORGETOWN_small.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />TOP OF GEORGETOWN MAP</a>"
								+"</td>"
							+"</tr>"
							+"<tr>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/ON_THE_BORDER_PROSPECT_FIELD_TERMS_VERT-HORIZONTAL_WELL_1.pdf' title='ON_THE_BORDER_PROSPECT_FIELD_TERMS_VERT-HORIZONTAL_WELL_1.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />TRADE TERM SUMMARY WELL #1</a>"
								+"</td>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/ONTHEBORDER_RESERVE_ESTIMATE.pdf' title='ONTHEBORDER_RESERVE_ESTIMATE.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />Estimated Reserve Parameters</a>"
								+"</td>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/TECTONIC_FEATURES_OF_THE_NORTHWESTERN_MAVERICK_BASIN.pdf' title='TECTONIC_FEATURES_OF_THE_NORTHWESTERN_MAVERICK_BASIN.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />TECTONIC FEATURES OF THE NORTHWESTERN MAVERICK BASIN</a>"
								+"</td>"
							+"</tr>"
							+"<tr>"
								+"<td align='left' valign='top'>"
									+"<a href='documents/TECTONIC_MAP_FEATURES_OF_THE_NW_MAVERICK_BASIN.pdf' title='TECTONIC_MAP_FEATURES_OF_THE_NW_MAVERICK_BASIN.pdf' target='_blank' class='bodyLinks'><img src='imgPDF.jpg' border='0' />TECTONIC FEATURES OF THE NORTHWESTERN MAVERICK BASIN MAP</a>"
								+"</td>"
							+"</tr>"
						+"</table>"
						+"<br /><br />"
						+"<input type='submit' name='submit' value='Logout' border='0' onClick='javascript:contentRevert();' style='width:215px; padding:10px;' />";

function contentChange() {
	var content = document.getElementById('content');
	
	if(document.sendmail.UserName.value == "User Name" && document.sendmail.Password.value == "Password"){
		alert('Please fill out all fields.');
	}else{
		if(document.sendmail.UserName.value == "Petro"){
			if(document.sendmail.Password.value == "Oil2011"){
				if(document.sendmail.disclosure.checked == true){
					content.innerHTML = contentContent;
				}else{
					alert('Please read and agree to the terms of the disclosure agreement above');
				}
			}else{
				alert('Please enter the correct Password.');
			}
		}else{
			alert('Please enter the correct User Name.');
		}
	}	
}

function contentRevert() {
	var content = document.getElementById('content');
	
	content.innerHTML = "<div class='bodyHeader'>"
                         	+"Secured Page Demo"
                       	+"</div>"
                        +"Please log-in below. <a href='mailto:info@petrochase.com' class='bodyLinks'>Click Here</a> if you have forgotten your log-in info."
                       	+"<br /><br />"
							+"<input name='UserName' type='text' "
                        		+"onFocus=\"javascript:if(document.sendmail.UserName.value=='User Name'){"
                                    			+"document.sendmail.UserName.value='';"
                                         	+"};\""
                                    +"onBlur=\"if(this.value.length == 0){"
                                    			+"this.value = 'User Name'"
                                          	+"};\""
                                    +"value='User Name' class='formInput' style='width:200px; padding:5px;'>"
                                +"<br />"
                                +"<input name='Password' type='text' "
                                	+"onFocus=\"javascript:if(document.sendmail.Password.value=='Password'){"
                                    			+"document.sendmail.Password.value=''; "
                                               +" document.sendmail.Password.type='password';"
                                           	+"};\""
                                    +"onBlur=\"if(this.value.length == 0){"
                                    			+"this.value = 'Password';"
                                    			+"this.type='text';"
                                           	+"}else{"
                                            	+"document.sendmail.Password.type='password';"
                                            +"};\""
                                    +"value='Password' class='formInput' style='width:200px; padding:5px;' >"
                                +"<br /><br />"
                            	+"This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is <b>STRICTLY PROHIBITED</b>. All estimates on production are strictly forecasts and do not represent actual results. Past performance is not indicative of future results. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by PetroChase,  as applicable, for any loss or damage arising in any way from its use. By agreeing you are stating that you are an accredited investor as to the standards of The Federal securities laws in Rule 501 of Regulation D of the Securities Act."
                                +"<br /><br />"
                                +"<input type='checkbox' name='disclosure' />I have read and agree to the terms of the disclosure agreement above"
                                +"<br /><br />"
                                +"<input type='submit' name='submit' value='Login' border='0' onClick='javascript:contentChange();' style='width:215px; padding:10px;' />"
}

function thankyou(){
	if(document.sendmail.FirstName.value == "" || document.sendmail.LastName.value == "" || document.sendmail.Address.value == "" || document.sendmail.City.value == "" || document.sendmail.State.value == "" || document.sendmail.Zip.value == "" || document.sendmail.Phone1.value == "" || document.sendmail.Phone2.value == "" || document.sendmail.Phone3.value == "" || document.sendmail.Email.value == "" ){
		alert('Please fill out required fields.');
	}else{
		alert('Your message was sent, Thank You!');
	}
}

function thankyouHome(){
	if(document.sendmail.FirstName.value == "" || document.sendmail.LastName.value == "" || document.sendmail.Email.value == "" || document.sendmail.PhoneNumber.value == "" || document.sendmail.FirstName.value == "First Name" || document.sendmail.LastName.value == "Last Name" || document.sendmail.Email.value == "Email" || document.sendmail.PhoneNumber.value == "Phone Number"){
		alert('Please fill out all required fields.');
	}else{
		alert('Thanks for contacting PetroChase! You will soon receive the Free paper "Investing in Oil and Gas 101" and a follow up regarding our drilling projects. Thank You!');
	}
}
