/* 
* Caprican Internet Solutions

* Javascript Functions

* Version: 1  Id: JDM - functions-main.js 12-18-2008

* Author: Alvin Santa Clara

* @Copyright 2008 Caprican Internet Solutions 

*/

// Form Functions

function clearField(){ // Clears the Input Field of any initial values.
var texts=document.getElementsByTagName('input')
for (var i_tem = 0; i_tem < texts.length; i_tem++)
if (texts[i_tem].type=='text')
texts[i_tem].value=''
}

// CSS Functions to Override IE6 and lesser.
//$(document).ready(function() {
	/*IE6 fixes*/
//	if ($.browser.msie && $.browser.version < 7) {
		/*append a non-semantic background image to the #homePageBox */
//		$('#railBlock.highlight').append('<img
//			src="/sites/pfd/img/chrome/blue/railHighlightB.png" width="282"
//			height="20" alt="" style="display: block;"/>'
//		);

//		$('.railBlock:not(.highlight)').append('<img
//			src="/sites/pfd/img/chrome/blue/railB.png" width="282"
//			height="20" alt="" style="display: block;" />'
//		);
//	}
//});

// Pop-Up Windows

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_popupMsg(msg) { //v1.0
  alert(msg);
}

function submitform()
{
  document.selectType.submit();
}

function decision(message, url){
if(confirm(message)) location.href = url;
}
//-->

function remove(message, url){
if(confirm("Are you Sure you want to Delete + message + ?")) location.href = url;
}