if (typeof selfLocationOff=="undefined" && top.location!=self.location){
top.location=self.location;
}
function Evt(name) {
document.cfn7.partext.value = name;
document.cfn7.submit();
}
function DispMsg(m){
if(m!=""){
window.alert(m);
}
}
function OpenWin(url,name,w,h,l,t){
if (url!=""){
ParamText=""
if (w!=""){
ParamText="width="+ w
}
if (h!=""){
if (ParamText!=""){ParamText=ParamText + ","}
ParamText=ParamText+"height="+ h
}
if (l!=""){
if (ParamText!=""){ParamText=ParamText + ","}
ParamText=ParamText+"left="+ l
}
if (t!=""){
if (ParamText!=""){ParamText=ParamText + ","}
ParamText=ParamText+"top="+ t
}
window.open(url,name,ParamText);
//window.open(url);
//return false;
}
}
function submitenter(myfield,e,action){
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13){
document.cfn7.partext.value = action;
document.cfn7.submit();
// myfield.form.submit();
return false;
}else{
return true;
}
}
function textCounter(theField,theCharCounter,maxChars)
{
var strCharCounter = 0;
var str = document.forms[0].elements[theField].value;
var len = str.length;
var i;
for(i = 0; i < len; i++){
n = escape(str.charAt(i));
if (n.length < 4) strCharCounter++; else strCharCounter+=2;
}
document.forms[0].elements[theCharCounter].value = strCharCounter;
if (strCharCounter>maxChars ){
document.forms[0].elements[theCharCounter].style.color="red";
}else{
document.forms[0].elements[theCharCounter].style.color="black";
}
}
function OpenerReloadAndClose(s){
if(s!=""){
window.opener.focus();
window.opener.location.reload();
window.close();
}
}
function OpenerReloadAndSbClose(s){
if(s!=""){
//alert("enter!");
parent.location.reload();
// parent.Shadowbox.close();
}
}
function OnlyOne(a,b){
if(document.forms[0].elements[a][b].checked==true){
document.forms[0].elements[a][1-b].checked=false;
}
}
function embedFlash(width, height, id, align, swf_name, bgcolor, param)
{
var allow_script_access;
if(!swf_name.match('://'))
allow_script_access= "sameDomain";
else if(swf_name.split('://')[1].split('/')[0]=='www.careerforum.net')
allow_script_access= "sameDomain";
else
allow_script_access= "always";
document.write('\n');
}
function backToTop() {
var x1 = x2 = x3 = 0;
var y1 = y2 = y3 = 0;
if (document.documentElement) {
x1 = document.documentElement.scrollLeft || 0;
y1 = document.documentElement.scrollTop || 0;
}
if (document.body) {
x2 = document.body.scrollLeft || 0;
y2 = document.body.scrollTop || 0;
}
x3 = window.scrollX || 0;
y3 = window.scrollY || 0;
var x = Math.max(x1, Math.max(x2, x3));
var y = Math.max(y1, Math.max(y2, y3));
window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
if (x > 0 || y > 0) {
window.setTimeout("backToTop()", 25);
}
}
function setElementClassById(elem, value) {
if(document.getElementById) {
var obj = document.getElementById(elem);
if(obj) {
obj.className = value;
}
}
}
function setCookie(name, val) {
var tmp = name + "=" + escape(val) + "; ";
tmp += "path=/; ";
// tmp += "expires=Tue, 31-Dec-2030 23:59:59; ";
document.cookie = tmp;
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1) { endstr = document.cookie.length; }
return unescape(document.cookie.substring(offset, endstr));
}
function getCookie(name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg) return getCookieVal(j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function cssImport(File){
document.write('');
}
function jsImport(File) {
document.write('