
<!-- Validation on Terms -->
function validateAgreeTerms() {
	
	//Validate Answer
	if(document.affiliate.agree.checked != true) {
		alert('You have not agreed to the terms and conditions, please do so to continue.');
		document.affiliate.agree.focus();
		return false;
	} 
	
}//End Terms Validation


<!-- Begin Expand/Collapse -->
function expandCollapse(divId, imgId) {

	element = document.getElementById(divId);
	image = document.getElementById(imgId);
	
	if(element.style.display=='none'){
		element.style.display="block";
		
		image.src = "images/minus-icon.jpg";
		
	}else{
		element.style.display ="none";
		
		image.src = "images/plus-icon.jpg";
	}

}
<!-- End Expand/Collapse -->


<!-- Begin Expand/Collapse - Video -->
function video_menu(divId, imgId) {

	element = document.getElementById(divId);
	image = document.getElementById(imgId);
	
	if(element.style.display=='none'){
		element.style.display="block";
		
		image.src = "images/collapse-tab.jpg";
		
	}else{
		element.style.display ="none";
		
		image.src = "images/expand-tab.jpg";
	}

}
<!-- End Expand/Collapse - Video -->



//Set WIN IE Variable for fixPNG Function
var ie55up = true

<!-- PNG Transparency Function - WIN IE 5.5 or Higher -->
function fixPNG(myImage) {

	if (window.ie55up) {
		var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
		var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
		var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
		var imgStyle = "display:inline-block;" + myImage.style.cssText 
		var strNewHTML = "<span " + imgID + imgClass + imgTitle
		
		strNewHTML += " style=\"" + "width:" + myImage.width + "px; height:" + myImage.height + "px;" + imgStyle + ";"
		strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		strNewHTML += "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>" 
		
		myImage.outerHTML = strNewHTML
	}
	
}//End PNG Transparency Function


//Copy to Clipboard Function
function copy_to_clipboard(select_code) {
	
	var tempval=eval("document."+select_code)
	
	tempval.focus()
	tempval.select()
	
	therange=tempval.createTextRange()
	therange.execCommand("Copy")
	
}
//End to Copy to Clipboard Function


<!-- Start Print Tier 1 -->
function open_tier_1(month,year,affiliate_id) {
	window.open("commission-report-print.php?month="+month+"&year="+year+"&id="+affiliate_id, "Tier1", "width=765,height=450,toolbar=no,scrollbars=yes");
}//End Print Tier 1


<!-- Start Print Tier 2 -->
function open_tier_2(month,year,affiliate_id) {
	window.open("commission-tier-2-print.php?month="+month+"&year="+year+"&id="+affiliate_id, "Tier1", "width=765,height=450,toolbar=no,scrollbars=yes");
}//End Print Tier 2


<!-- Begin Print Page -->
function print_page() {
	window.print();  
}
<!-- End Print Page -->